View Single Post
  #3  
Old June 3rd, 2010, 03:25 AM posted to microsoft.public.excel.worksheet.functions
Ron Rosenfeld[_2_]
external usenet poster
 
Posts: 9
Default entering more than seven levels of functions with in a function

On Wed, 2 Jun 2010 18:57:01 -0700, CAMPLI
wrote:

I WANT TO PUT MORE THAN SEVEN LEVELS OF FUNCTIONS WITH A FUNCTION. FOR
EXAMPLE
=IF(B14=10000,14500,IF(B14=10470,15100,IF(B14=109 40,15700,IF(B14=11410,16300,IF(B14=11880,16900,IF( B14=12350,17500,IF(B14=12820,18100,IF(B14=13320,18 700,IF(B14=13820,19400,IF(B14=14320,20100,IF(B14=1 4880,20900,IF(B14=15440,21700,IF(B14=16000,22500,I F(B14=16560,23300,IF(B14=17120,24100,IF(B14=17680, 24900,IF(B14=18240,25700,IF(B14=18800,26500,IF(B14 =19360,27300,IF(B14=19920,28100,IF(B14=20480,28900 ,IF(B14=21040,29700,IF(B14=21660,30600,IF(B14=2228 0,31500,IF(B14=22900,32400,IF(B14=23520,33300,0))) )))))))))))
BUT EXCEL IS NOT ALLOWING ME TO PUT MORE THAN SEVEN FUNCTIONS IN A FUNCTION.
THEN WHAT I SHOULD DO. WHAT IS THE SOLUTION FOR THIS.


For your problem, you could use VLOOKUP.

You could set up a table someplace. Given your values:

10000 14500
10470 15100
10940 15700
11410 16300
11880 16900
12350 17500
12820 18100
13320 18700
13820 19400
14320 20100
14880 20900
15440 21700
16000 22500
16560 23300
17120 24100
17680 24900
18240 25700
18800 26500
19360 27300
19920 28100
20480 28900
21040 29700
21660 30600
22280 31500
22900 32400
23520 33300

Then use:

=VLOOKUP(B14,Tbl,2,FALSE)

Where Tbl refers to the range where your table is stored.

Note that your IF formula leaves undefined any value of B14 that is
not exactly equal to a value in column 1.

The function will return #N/A in that event.

If that is not what you really want, change the FALSE to TRUE in the
VLOOKUP formula; and also look at HELP for VLOOKUP to understand what
that does.