If Function Limitation

  • Thread starter Thread starter sayk
  • Start date Start date
S

sayk

How can one have more than 7 If Functions nested, I have the need to create
more than 7 If Functions, how can I go around this problem,

I consulted the Help Section and it states:
"Up to seven IF functions can be nested as value_if_true and value_if_false
arguments"

Your help is most appreciated!
 
In practically every instance I run across where you need more than 7 IF
statements, the problem can be solved by constructing a Lookup table of
values to be matched and their corresponding return value.

Example:
Col_A Col_B
Apple 1
Berry 100
Cat 11
Date 21
Eel 35
Fruit 106
Grate 17
Hail 0
etc (something)

C1: Eel
D1: =VLOOKUP(C1,A1:B8,2,0)
(returns 35)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro
 
You were right on the money,

Thanks!

Ron Coderre said:
In practically every instance I run across where you need more than 7 IF
statements, the problem can be solved by constructing a Lookup table of
values to be matched and their corresponding return value.

Example:
Col_A Col_B
Apple 1
Berry 100
Cat 11
Date 21
Eel 35
Fruit 106
Grate 17
Hail 0
etc (something)

C1: Eel
D1: =VLOOKUP(C1,A1:B8,2,0)
(returns 35)

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro
 
Glad that you said practically Ron. I have at least two instances of the
limitation that I got around with a named range, lookups were of no use.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top