Conditional Formatting Not Working

detweiler

Board Regular
Joined
Aug 2, 2013
Messages
62
I'm working with three columns, S ( true / false ), T ( true / false ) and X ( empty or any numerical ).

The logic is to format X is any one of the following -


  • if S is true and X equals zero... =AND($S2="true",$X2=0)
  • if T is true and X equals zero... =AND($T2="true",$X2=0)
  • if S is false and X is greater than zero... =AND($S2="false",$X2>0)
  • if T is false and X is greater than zero... =AND($T2="false",$X2>0)

I selected, copied and pasted a sample size of data that matched the criteria into a new worksheet and then selected X2:X150 for the conditional formatting to effect and, seeing how easily this should've worked, nested each AND function within an OR. When there were no changes to any of the cells in column X, I then tried each of the statements individually with no results as well.

So, please tell me where I went wrong because I apparently / obviously do not see it.

Thanks.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Are your values in columns S and T text entries of True/False, or boolean entries of True/False? It makes a difference!

Here is how you can find out quickly. Let's say that cell S2 is True. Enter this formula anywhere on your sheet.
Code:
=IF(S2=TRUE,"Boolean entry",IF(S2="true","Text entry","???"))
If it says they are Boolean, change all your formulas accordingly (no double-quotes around words TRUE/FALSE), i.e.
Code:
=AND($S2=TRUE,$X2=0)
 
Last edited:
Upvote 0
Solution

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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