#1   Report Post  
Posted to microsoft.public.excel.programming
Tom Tom is offline
external usenet poster
 
Posts: 8
Default FORMULAS

I have the following formula that I'm using and can't seem to get it
accomplished. In column "G", I have a list of numbers that I need to
have matched with the following formula and give me the class it falls
under, but I keep getting an error, due to to many functions. I found
out that there is a limit of only 7 nested functions in excel. Is
there a way around this, or am I stuck? Any ideas????

Thanks

Tom

=IF(G2<1,"400",IF(G2<2,"300",IF(G2<4,"250",IF(G2<6 ,"150",IF(G2<8,"125",IF(G2<10,"100",IF(G2<12,"92.5 ",IF(G2<15,"85",IF(G2<22.5,"70",IF(G2<30,"65",IF(G 2=30,"60)))))))))))
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default FORMULAS

Hi
there's a limit of 7 nested functions. In your case you may try the
following
1. Create a lookup table in the following layout (e.g. on the sheet
'lookup')
A B
1 -100 400
2 1 300
3 2 250
4 4 150
....

2. Use the following formula
=VLOOKUP(G1,'lookup'!A1:B20,2,TRUE)

--
Regards
Frank Kabel
Frankfurt, Germany

"Tom" schrieb im Newsbeitrag
om...
I have the following formula that I'm using and can't seem to get it
accomplished. In column "G", I have a list of numbers that I need to
have matched with the following formula and give me the class it

falls
under, but I keep getting an error, due to to many functions. I

found
out that there is a limit of only 7 nested functions in excel. Is
there a way around this, or am I stuck? Any ideas????

Thanks

Tom


=IF(G2<1,"400",IF(G2<2,"300",IF(G2<4,"250",IF(G2<6 ,"150",IF(G2<8,"125",
IF(G2<10,"100",IF(G2<12,"92.5",IF(G2<15,"85",IF(G2 <22.5,"70",IF(G2<30,"
65",IF(G2=30,"60)))))))))))

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default FORMULAS

I need for the search to look through the following criteria:

Less than 1 =400
1 but less than 2 =300
2 but less than 4 =250
4 but less than 6 =150
6 but less than 8 =125
8 but less than 10 =100
10 but less than 12 =92.5
12 but less than 15 =85
15 but less than 22.5 =70
22.5 but less than 30 =65
30 or greater =60

so if the number is 7.95, I need for it to enter 125.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default FORMULAS

Hi
and that is what the formula will do :-)
Just enter your criteria:
- in column A ONLY the lower boundary (and for the first row just a
negative number)
- in column B the desired result

And then use VLOOKUP

--
Regards
Frank Kabel
Frankfurt, Germany

"Tom Tucker" schrieb im Newsbeitrag
...
I need for the search to look through the following criteria:

Less than 1 =400
1 but less than 2 =300
2 but less than 4 =250
4 but less than 6 =150
6 but less than 8 =125
8 but less than 10 =100
10 but less than 12 =92.5
12 but less than 15 =85
15 but less than 22.5 =70
22.5 but less than 30 =65
30 or greater =60

so if the number is 7.95, I need for it to enter 125.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default FORMULAS

While a Vlookup is certainly an option if you want to take up more real
estate, have you abandoned the idea of using IF statements even though I
showed you how to do it? Just curious why your continuing to struggle when
you could just copy in the solution.

--
Regards,
Tom Ogilvy


"Tom Tucker" wrote in message
...
I need for the search to look through the following criteria:

Less than 1 =400
1 but less than 2 =300
2 but less than 4 =250
4 but less than 6 =150
6 but less than 8 =125
8 but less than 10 =100
10 but less than 12 =92.5
12 but less than 15 =85
15 but less than 22.5 =70
22.5 but less than 30 =65
30 or greater =60

so if the number is 7.95, I need for it to enter 125.



*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default FORMULAS

Split your test into two sides as shown:

=IF(G2<8,IF(G2<1,"400",IF(G2<2,"300",IF(G2<4,"250" ,IF(G2<6,"150",IF(G2<8,"12
5"))))),IF(G2<10,"100",IF(G2<12,"92.5",IF(G2<15,"8 5",IF(G2<22.5,"70",IF(G2<3
0,"65","60"))))))

works.

or set up a table on your sheet and use a vlookup function.

--
Regards,
Tom Ogilvy



"Tom" wrote in message
om...
I have the following formula that I'm using and can't seem to get it
accomplished. In column "G", I have a list of numbers that I need to
have matched with the following formula and give me the class it falls
under, but I keep getting an error, due to to many functions. I found
out that there is a limit of only 7 nested functions in excel. Is
there a way around this, or am I stuck? Any ideas????

Thanks

Tom


=IF(G2<1,"400",IF(G2<2,"300",IF(G2<4,"250",IF(G2<6 ,"150",IF(G2<8,"125",IF(G2
<10,"100",IF(G2<12,"92.5",IF(G2<15,"85",IF(G2<22.5 ,"70",IF(G2<30,"65",IF(G2
=30,"60)))))))))))


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
Convert Array Formulas to Regular Formulas Domenick Excel Worksheet Functions 6 August 17th 15 09:16 PM
Convert Array Formulas to Regular Formulas minyeh Excel Worksheet Functions 0 March 21st 10 05:55 AM
Counting # of Formulas in a column with formulas and entered data Brand Excel Worksheet Functions 1 October 10th 09 01:01 PM
CELLS NOT CALC FORMULAS - VALUES STAY SME FORMULAS CORRECT?? HELP Sherberg Excel Worksheet Functions 4 September 11th 07 01:34 AM
Formulas not evaluated, Formulas treated as strings Bob Sullentrup Excel Discussion (Misc queries) 0 November 27th 06 08:01 PM


All times are GMT +1. The time now is 06:45 AM.

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

About Us

"It's about Microsoft Excel"