worksheetfunction nesting max

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Worksheetfunction nesting max if

Worksheetfunction nesting max if

resolvedResolved · Medium Priority · Version 2007

Tony has attended:
Excel VBA Intro Intermediate course
Excel VBA Advanced course
Access Intermediate course
Access Advanced course

Worksheetfunction nesting max if

I am try to create array formula in Excel VBA. In excel, I would use the formula

{max(if(name1=a2,name2))}

name1 and name 2 are named ranges

i am happy using worksheetfunction for max or if but do not know how to do a nested function to get max if

RE: Worksheetfunction nesting max if

Hi Tony

Thanks for the question

Could you clarify for me whether you wish to create a customised function procedure, or if you wish to use the above as the formula property of a cell object?

Thanks

Stephen

 

Training courses

 

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.


 

Excel tip:

Checking if a calculation adheres to Order of Precedence

When writing formulas you must make sure that results will be calculated as you intended.

Excel adheres to the standard order of precedence for calculations. It calculates percentages, exponents, multiplication, and division in this order before calculating addition and subtraction.

For example, =7+5*3 results in an answer of 22, not 36.

To force a calculation to be completed before another calculations, place the section in parentheses: =(7+5)*3 will result in 36.

To check how excel is evaluating a formula, click on the cell and select the 'Tools' menu, select 'Formula Auditing' and click 'Evaluate Formula'

In the dialog box click on 'Evaluate' to watch as each part of the formula is successively calculated.

View all Excel hints and tips


Server loaded in 0.08 secs.