Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
jonrtait
 
Posts: n/a
Default IF function - limit to the number of IFs?

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.
  #2   Report Post  
CLR
 
Posts: n/a
Default IF function - limit to the number of IFs?

That's it..........take a look at the VLOOKUP function.........

Vaya con Dios,
Chuck, CABGx3


"jonrtait" wrote in message
...
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.



  #3   Report Post  
jonrtait
 
Posts: n/a
Default IF function - limit to the number of IFs?

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?

"CLR" wrote:

That's it..........take a look at the VLOOKUP function.........

Vaya con Dios,
Chuck, CABGx3


"jonrtait" wrote in message
...
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.




  #4   Report Post  
CLR
 
Posts: n/a
Default IF function - limit to the number of IFs?

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


"jonrtait" wrote in message
...
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?

"CLR" wrote:

That's it..........take a look at the VLOOKUP function.........

Vaya con Dios,
Chuck, CABGx3


"jonrtait" wrote in message
...
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.






Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
VBA "Rnd" Function: Truly Random? TheRobsterUK Excel Discussion (Misc queries) 2 September 27th 05 04:50 AM
Function or number depending on input Jan Jansens Excel Worksheet Functions 7 September 7th 05 12:40 PM
Text Function with Different Formatting for Number MKenworthy Excel Discussion (Misc queries) 1 September 1st 05 11:34 PM
Limit to the number of items in a cell Jim_Bowie Excel Worksheet Functions 2 June 22nd 05 06:33 PM
How do I limit the number of complete sentences in a spreadsheet c sbernard Excel Worksheet Functions 1 February 13th 05 05:26 AM


All times are GMT +1. The time now is 03:07 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"