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

C

Chris T-M

I've boiled down a problem Function to the following statement:
=IF(I54=OR(2,3,4),"Low","")
I54 = 2
Function returns ""
 
R

Ron Coderre

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)
 
C

Chris T-M

Duh! Thank you very much.

Now if I can just simplify 21 nested IF statements into 7 I'll be set.
 
Top