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:

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
=if(or(A1="True",B1="True",C1="True"),"True",if(and(A1="False",B1="False",C1="False"),"False","Unknown")))
 
Upvote 0
Code:
=IF(OR(A10="True",B10="True",C10="True"),"TRUE",IF(AND(A10="False",B10="False",C10="False"),"FALSE","Unknown"))

Is that?
 
Upvote 0
In words, what are you trying to accomplish? alansidman and tico_ocit seem to have created a formula matching your request. But if your goal is to return TRUE if A1:C1 are all true, or FALSE if A1:C1 are all false, and Unknown otherwise, check my formula in post 3.
 
Upvote 0
Could it be that the values in my cells are coming from Lookups?
 
Last edited:
Upvote 0
It would help, if you put what you have in the cells and what you expect from the result.


Check if in the cell you have the text "True" or you have the Boolean value True.

It is definitely necessary that you put the examples, we are blind with what you try.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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