Easy one but I cannot get it to work!

buteaur

Board Regular
Joined
Mar 15, 2016
Messages
170
I'm trying to write a multiple if(or statement with three data points.

IF(OR(AA11046="AAA",OR(AA11046="AAB",OR(AC11046="YES"))),"YES","NO")

Brings back "no" no matter what.

I'm trying to say if the points are aaa and aab and yes then give me yes. all others should be no.

Any help is appreciated!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
if the requirement is for any of the three criteria to be true then perhaps

=IF(OR(AA11046="AAA",AA11046="AAB",AC11046="YES"),"YES","NO")

if they ALL need to be true then

=IF(AND(AA11046="AAA",AA11046="AAB",AC11046="YES"),"YES","NO")*

update: oops. ignore that "AND" part, it would never evaluate to true anyway since the AAA and AAB test are on the same AA11046 cell
 
Last edited:
Upvote 0
Thank you. The first one I had written as well but does not work.

The second one won't give the desired results as they don't all need to be true.

Thank you very much for the response though!
 
Upvote 0
Is this what you want
=IF(AND(OR(AA11046="AAA",AA11046="AAB"),AC11046="YES"),"YES","NO")
 
Upvote 0

Forum statistics

Threads
1,223,577
Messages
6,173,164
Members
452,504
Latest member
frankkeith2233

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