Conditional Formatting with If statement not working

beginvbaanalyst

Board Regular
Joined
Jan 28, 2020
Messages
141
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I pretested this on my sheet to show for true DC and false STORE but when I try to use it for conditional formatting it doesn't work.
=IF(AND(C2<>3,B2>800),"DC", "STORE")
I have it selected for the entire B:C columns.
Just want it to highlight if anything in the C column and B column equal the criteria.
Please help.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
i think custom rules for conditional formatting just look for TRUE or FALSE, and will highlight accordingly
you formula will result in DC or STORE so it cannot highlight anything
it should work if you put =AND(C2<>3,B2>800) as your rule hopefully, or possibly =IF(AND(C2<>3,B2>800),TRUE, FALSE)
 
Upvote 0
i think custom rules for conditional formatting just look for TRUE or FALSE, and will highlight accordingly
you formula will result in DC or STORE so it cannot highlight anything
it should work if you put =AND(C2<>3,B2>800) as your rule hopefully, or possibly =IF(AND(C2<>3,B2>800),TRUE, FALSE)
For some reason that isn't working so my work around is to if a cell contains and did equal to.
So one additional conditional formatting but works the same.
Thank you.
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,162
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