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

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
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,216,496
Messages
6,130,983
Members
449,611
Latest member
Bushra

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