ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Nested IF, reports incorrectly, can't find anything like it to ref (https://www.excelbanter.com/excel-worksheet-functions/157865-nested-if-reports-incorrectly-cant-find-anything-like-ref.html)

Chris T-M

Nested IF, reports incorrectly, can't find anything like it to ref
 
I've boiled down a problem Function to the following statement:
=IF(I54=OR(2,3,4),"Low","")
I54 = 2
Function returns ""

Michael

Nested IF, reports incorrectly, can't find anything like it to ref
 
Try this:
=IF(OR(I54=2,I54=3,I54=4),"Low","")
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Chris T-M" wrote:

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


Ron Coderre

Nested IF, reports incorrectly, can't find anything like it to ref
 
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)


"Chris T-M" wrote in message
...
I've boiled down a problem Function to the following statement:
=IF(I54=OR(2,3,4),"Low","")
I54 = 2
Function returns ""




Chris T-M

Nested IF, reports incorrectly, can't find anything like it to
 
Duh! Thank you very much.

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

"Michael" wrote:

Try this:
=IF(OR(I54=2,I54=3,I54=4),"Low","")
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Chris T-M" wrote:

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


Chris T-M

Nested IF, reports incorrectly, can't find anything like it to
 
Thank you also. They both work, but the second is less "wordy"

"Ron Coderre" wrote:

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)


"Chris T-M" wrote in message
...
I've boiled down a problem Function to the following statement:
=IF(I54=OR(2,3,4),"Low","")
I54 = 2
Function returns ""





JMB

Nested IF, reports incorrectly, can't find anything like it to
 
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 he
http://www.cpearson.com/Excel/nested.htm


"Chris T-M" wrote:

Duh! Thank you very much.

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

"Michael" wrote:

Try this:
=IF(OR(I54=2,I54=3,I54=4),"Low","")
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"Chris T-M" wrote:

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


ilia

Nested IF, reports incorrectly, can't find anything like it to
 
What are the statements?


On Sep 11, 12:56 pm, Chris T-M
wrote:
Duh! Thank you very much.

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



"Michael" wrote:
Try this:
=IF(OR(I54=2,I54=3,I54=4),"Low","")
--
If this posting was helpful, please click on the Yes button.
Regards,


Michael Arch.


"Chris T-M" wrote:


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


- Show quoted text -





All times are GMT +1. The time now is 04:57 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com