View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
dkingston dkingston is offline
external usenet poster
 
Posts: 11
Default 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