It appears that I maxed out in an if formula with a total of 9 if statements. Any way around this dilemma. at this time I will need to test for several more criteria. What is the Max number one can use in this formula.
Thanks
It appears that I maxed out in an if formula with a total of 9 if statements. Any way around this dilemma. at this time I will need to test for several more criteria. What is the Max number one can use in this formula.
Thanks

This month, every Windows Secrets subscriber can download a one-chapter excerpt of Windows 7: The Missing Manual.Windows 7: The Missing Manual provides valuable information to help you overcome these difficulties in learning a new operating system. Subscribe today to download your free excerpt.
The limit is 7.
The way around this depends on exactly what you are doing.
One solution is to use a Vlookup, but that is not always applicable.
Regards
John
Check out Chip Pearson's site, he has a technique using named ranges that may help you HTH
Paul Coyle
Approach love and cooking with reckless abandon
Another option is to create a user defined function {UDF} that does all the testing and returns the appropriate answer into the cell.![]()
Or make the spreadsheet less complex and simpler for the next person and break it into two or more cells.
Do you "Believe"? Do you vote? Please Read:
LEARN something today so you can TEACH something tomorrow.
DETAIL in your question promotes DETAIL in my answer.
Dominus Vobiscum <))>(
What is a UDF user defined function and how will this help me accomplish my goal?
A function is something like Sum or Count, where the word is the name of a procedure. Sum and Count are prewritten functions that come with Excel.
It is possible to create your own functions, by writing out in VBA (Visual Basic) what job you want done. these are User Defined functions.
VBA is more flexible so you would not be limited to 7 if statements.
You could find out more about them with a google search for Excel UDF. This is a page with more info and some examples.
Regards
John
Perhaps if you provided some details, someone could come up with a formula or lookup scenario that worked or help to create a UDF for you. Without some details, there are just too many possibilities...
Steve
An alternative to nesting "IF" statements may be to use the "CHOOSE" function. Without knowing exactly what criteria you are evaluating, this may or may not apply to your case. If you want the value of a cell to be a certain value picked from a list (value1, value2, value3,...) based on the value of another cell or experssion (index_num), then this is the formula you want. CHOOSE(Index_num, value1, value2, value3,...)
ex: CHOOSE(1, "hello", 6, E7, "good bye", 10/H5) Index_num of 1 selects the first value in the list "hello"
CHOOSE(K2, "hello", 6, E7, "good bye", 10/H5) The value of cell K2 indicates the the selection of the value list. If cell K2= 3 then evaluates to the contents of cell E7
CHOOSE(A1+B1, "hello", 6, E7, "good bye", 10/H5) The expression value of Cells A1 + B1 determines selection of the vaule list. If A1=3 and B1=2 then the formula
evaluates to the 5th value in the list which is 10 divided by the vaule of cell H5
This my shorten the process of elimination by nesting "If" statements if this is what you are trying to achieve. HTH
Also, what version of Excel are you using?
[b]Catharine Richardson (WebGenii)
WebGenii Home Page
Moderator: Spreadsheets, Other MS Apps, Presentation Apps, Visual Basic for Apps, Windows Mobile