Nested IF, reports incorrectly, can't find anything like it to ref

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I've boiled down a problem Function to the following statement:
=IF(I54=OR(2,3,4),"Low","")
I54 = 2
Function returns ""
 
Each component of the OR function must return a TRUE/FALSE value....
however, if those components return numeric values:
0=FALSE,
any other number=TRUE.

Consequently, OR(2,3,4) is equal to OR(TRUE, TRUE, TRUE)

Try on of these:
=IF(OR(I54=2,I54=3,I54=4),"Low","")
or
=IF(OR(I54={2,3,4}),"Low","")

Does that help?
--------------------------

Regards,

Ron
Microsoft MVP (Excel)

(XL2003, Win XP)
 
Duh! Thank you very much.

Now if I can just simplify 21 nested IF statements into 7 I'll be set.
 
Alternate solutions often use a lookup function instead (eg Lookup, Vlookup,
Index/Match). Choose might also be worth taking a look at (see XL help for
description).

Other methods (defined names or user defined functions) are discussed here:
http://www.cpearson.com/Excel/nested.htm
 

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

Back
Top