Conditional Formatting Help - (empy cell or matching = no formatting while non matching is formatted)

maximillianrg

Board Regular
Joined
Aug 7, 2014
Messages
75
Office Version
  1. 2016
Platform
  1. Windows
I’m looking for some help with conditional formatting

Cell A1 contains the number 5
Cell B1 is empty and is the cell I want to apply the conditional formatting to based on what is entered into B1

If cell B1 is empty then no conditional formatting is applied
If user enters content into B1 that is equal to cell A1 then no formatting is applied
if user enters content into B1 that is not equal to A1 then conditional formatting is applied

I can make this work with 3 seperate conditional formatting statemens but was wondering if a formula could be used, something like

=IF(B1="","",IF(B1=A1,"","X"))

Where "" is no formatting and X is formatting

Thanks so much

PS : I can't use Macro's or VB
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Does this CF formula do it?

=AND(B1<>"",B1<>A1)
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
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