Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
limit on embedded IFs ?
is there a maximum # of embedded IF statements allowed in excel 2002? if so,
how can i sort a list of numeric values into groups? i have a column of numbers that i want to seperate into groups. i.e.: 1-50=group1, 51-150=group2, 151-300=group3,...1000-1300=group14, 1300=group15 i tried: =IF(A2<50,1,IF(A2<150,2,IF(A2<300,3,IF(A2...IF(A2< 1300,14,15))))))))))))))) i've checked the formula closely and it seems like it should work but excel says there's an error and highlights the 9th "IF" thanks in advance for your help |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
limit on embedded IFs ?
Hi!
The limit is 7 nested functions (any function, not just IF's). Create a 2 column table like this: ..............C...........D 1...........0............1 2..........51...........2 3.........151..........3 4.........301..........4 etc As you can see, use the lower boundary of each group in the table. Then use a formula like this: =VLOOKUP(A2,C1:D4,2) Biff "dkingston" wrote in message ... is there a maximum # of embedded IF statements allowed in excel 2002? if so, how can i sort a list of numeric values into groups? i have a column of numbers that i want to seperate into groups. i.e.: 1-50=group1, 51-150=group2, 151-300=group3,...1000-1300=group14, 1300=group15 i tried: =IF(A2<50,1,IF(A2<150,2,IF(A2<300,3,IF(A2...IF(A2< 1300,14,15))))))))))))))) i've checked the formula closely and it seems like it should work but excel says there's an error and highlights the 9th "IF" thanks in advance for your help |
#3
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
limit on embedded IFs ?
worked like a charm.
thanks biff! "Biff" wrote: Hi! The limit is 7 nested functions (any function, not just IF's). Create a 2 column table like this: ..............C...........D 1...........0............1 2..........51...........2 3.........151..........3 4.........301..........4 etc As you can see, use the lower boundary of each group in the table. Then use a formula like this: =VLOOKUP(A2,C1:D4,2) Biff "dkingston" wrote in message ... is there a maximum # of embedded IF statements allowed in excel 2002? if so, how can i sort a list of numeric values into groups? i have a column of numbers that i want to seperate into groups. i.e.: 1-50=group1, 51-150=group2, 151-300=group3,...1000-1300=group14, 1300=group15 i tried: =IF(A2<50,1,IF(A2<150,2,IF(A2<300,3,IF(A2...IF(A2< 1300,14,15))))))))))))))) i've checked the formula closely and it seems like it should work but excel says there's an error and highlights the 9th "IF" thanks in advance for your help |
#4
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
limit on embedded IFs ?
You're welcome. Thanks for the feedback!
Biff "dkingston" wrote in message ... worked like a charm. thanks biff! "Biff" wrote: Hi! The limit is 7 nested functions (any function, not just IF's). Create a 2 column table like this: ..............C...........D 1...........0............1 2..........51...........2 3.........151..........3 4.........301..........4 etc As you can see, use the lower boundary of each group in the table. Then use a formula like this: =VLOOKUP(A2,C1:D4,2) Biff "dkingston" wrote in message ... is there a maximum # of embedded IF statements allowed in excel 2002? if so, how can i sort a list of numeric values into groups? i have a column of numbers that i want to seperate into groups. i.e.: 1-50=group1, 51-150=group2, 151-300=group3,...1000-1300=group14, 1300=group15 i tried: =IF(A2<50,1,IF(A2<150,2,IF(A2<300,3,IF(A2...IF(A2< 1300,14,15))))))))))))))) i've checked the formula closely and it seems like it should work but excel says there's an error and highlights the 9th "IF" thanks in advance for your help |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Links in Embedded doc within sheet don't change when sheet is copi | Excel Discussion (Misc queries) | |||
sum limit and marking | Excel Worksheet Functions | |||
Hide embedded objects contained in row that is filtered out | Excel Discussion (Misc queries) | |||
Displaying cell references next to embedded cells in Word 2000 | New Users to Excel | |||
problem with embedded pdf file | Excel Discussion (Misc queries) |