IF function - limit to the number of IFs?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a limit to the number of IF statements you can have in one function?

i.e. =IF(a1<a10,a10,(IF(a1<a11,a11,(IF(a1<a12,12,(IF(.................. and
so on.

I seem to get to 8 IFs and then get an error.
 
That's it..........take a look at the VLOOKUP function.........

Vaya con Dios,
Chuck, CABGx3
 
Thought so....

Only problem with the LOOKUP functions is that if an exact match is not
found, the next largest value that is less than lookup_value is returned....
but I need the next largest value that is GREATER than the lookup_value....

Any thoughts?
 
If your data increments are equally spaced, like 100, 200, 300,
etc.........maybe something like.....

=IF(ISNA((YourVlookupFormula,FALSE), (YourVLookupFormula+OneIncrement,True),
(YourVlookupFormula,FALSE))

Vaya con Dios,
Chuck, CABGx3
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top