IF(AND with IF(OR

jlove

New Member
Joined
Aug 7, 2007
Messages
29
Trying to nail the syntax for:

IF(OR(A1="TRUE", B1="TRUE", C1="TRUE" Return "TRUE"
elseIF(AND(A1="FALSE", B1="FALSE", C1="FALSE" Return "FALSE"
else "Unknown"
 
Last edited:
The expression above =IF(OR(A10="True",B10="True",C10="True"),"TRUE",IF(AND(A10="False",B10="False",C10="False"),"FALSE","Unknown"))
works when I use anything other than "TRUE" or "FALSE". I guess that means the values are automatically converting to boolean and this formula does not like that. I cannot even replace the values as they are all look-ups. Making a hidden column to evaluate the boolean values to something else does not work either, because of the boolean values starting point...

Thank you all for your help, I am open to further ideas if any. Otherwise I will do it manually.

To explain in words: If ANY of the first 3 columns are TRUE, return "TRUE". If ALL of the first 3 columns are FALSE, return "FALSE". Any other combination should return "UNKNOWN"

CONFIG_REQ PACK_REQ ACCSY_REQ Expected Result Actual Result
Yes No No TRUE TRUE
No No No FALSE FALSE
B B UNKNOWN UNKNOWN
TRUE FALSE FALSE TRUE UNKNOWN
FALSE FALSE FALSE FALSE UNKNOWN
FALSE FALSE UNKNOWN UNKNOWN
 
Upvote 0

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top