IF Statement Question?

Wigman86

New Member
Joined
Oct 12, 2017
Messages
18
Hello Everyone

I am pulling a blank and need help.

I want my if statement to do the following - If cell A11 = TRUE Return "BLACK"
If cell B11 = TRUE Return "WHITE"
IF cells A11 and B11 = TRUE Return "BLACK AND WHITE"

The code I have is below but i cannot get it to work. Thanks in advance for any help:

=IF(A11="TRUE","BLACK",IF(B11="TRUE","WHITE",IF(AND(A11="TRUE",B11="TRUE"),"BLACK AND WHITE","")))
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Try this:

=IF(AND(A11="TRUE",B11="TRUE"),"BLACK AND WHITE",IF(AND(A11="TRUE", B11<>"TRUE"),"BLACK",IF(AND(A11<>"TRUE",B11="TRUE"),"WHITE","")))

Or try this if the TRUE results are from a formula.

=IF(AND(A11=TRUE,B11=TRUE),"BLACK AND WHITE",IF(AND(A11=TRUE, B11<>TRUE),"BLACK",IF(AND(A11<>TRUE,B11=TRUE),"WHITE","")))
 
Last edited:
Upvote 0
Try this:

=IF(AND(A11="TRUE",B11="TRUE"),"BLACK AND WHITE",IF(AND(A11="TRUE", B11<>"TRUE"),"BLACK",IF(AND(A11<>"TRUE",B11="TRUE"),"WHITE","")))

Or try this if the TRUE results are from a formula.

=IF(AND(A11=TRUE,B11=TRUE),"BLACK AND WHITE",IF(AND(A11=TRUE, B11<>TRUE),"BLACK",IF(AND(A11<>TRUE,B11=TRUE),"WHITE","")))


Thank you so much. This works great!!!!!
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

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