Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default 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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default 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
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
Links in Embedded doc within sheet don't change when sheet is copi Dan k Excel Discussion (Misc queries) 0 May 11th 06 05:41 PM
sum limit and marking Sum Limit and marking Excel Worksheet Functions 1 December 20th 05 01:01 PM
Hide embedded objects contained in row that is filtered out Jim2003 Excel Discussion (Misc queries) 1 July 13th 05 05:31 PM
Displaying cell references next to embedded cells in Word 2000 The Consigliere New Users to Excel 1 April 9th 05 02:58 PM
problem with embedded pdf file Gary Excel Discussion (Misc queries) 0 January 19th 05 01:57 PM


All times are GMT +1. The time now is 12:30 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"