Conditional Formatting with Formula

janema

Board Regular
Joined
Nov 28, 2022
Messages
117
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2011
  5. 2010
Platform
  1. Windows
  2. Mobile
I am trying to get the conditional formatting formula to highlight the cell if it does not equal the cell to it's left. See example below. I tried using =Y3<>X3, =$Y$3<>$X$3, =$Y3<>$X3, as well as writing out the formula in the conditional formatting box like =if(Y3<>X3), but not luck. Can anyone help me understand what I'm doing wrong?

If the value in column Y does not equal the value in column X (starting from row 3), I just want it to conditionally format, but it won't cooperate :(

1691978806711.png


Thank you in advance for your help and insight into this!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Nothing's wrong with the formula, are you sure your applies to area is correct? It needs to start with Y3.
 
Upvote 0
Nothing's wrong with the formula, are you sure your applies to area is correct? It needs to start with Y3.
None of those formulas work. See example below. Every formula I tried above doesn't work. Several of those cells should be highlighted, but they are not. (I moved some columns so now it applies to X and W, but regardless, it's not working. :confused:

1691984131853.png
 
Upvote 0
I always seem to run into issues with conditional formatting. It turns out wonky. :cry: I just want the formula in the conditional formatting to fill the cell with the shade I select if column Y does not equal X. It seems simple, but it won't work. I don't want it to shade the title row though. Ideally, it will look like this if it works (did this manually so far):

1691985524590.png
 
Upvote 0
I have no such issues
Book4
WX
333
433
522
633
73s3s
83s3s
933
1033
1133
1233
1322
1422
1533
1633
173s3
1844
1933
2033
2134
2233
2333
2467
2545
2633
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
X3:X26Expression=$W3<>$X3textNO
 
Upvote 0
I have no such issues
Book4
WX
333
433
522
633
73s3s
83s3s
933
1033
1133
1233
1322
1422
1533
1633
173s3
1844
1933
2033
2134
2233
2333
2467
2545
2633
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
X3:X26Expression=$W3<>$X3textNO

Doesn't work for me unfortunately.
 
Upvote 0
After you try setting up the Conditional Formatting Rule, can you go back to it and hit "Manage Rules", and show us what the Conditional Formatting Rules Manager shows (it will look something like this, where it shows BOTH the formulas being used and the ranges they are being applied to):

1692044816740.png

Just copy/paste that image here so we can see/inspect it.
 
Upvote 0
After you try setting up the Conditional Formatting Rule, can you go back to it and hit "Manage Rules", and show us what the Conditional Formatting Rules Manager shows (it will look something like this, where it shows BOTH the formulas being used and the ranges they are being applied to):

View attachment 97152
Just copy/paste that image here so we can see/inspect it.

1692055274351.png



It is applying to conditional formatting incorrectly with this and several other variations I tried. Just doesn't seem to work for me.
 
Upvote 0
Just as I figured. Your formula and applied to range are out of synch.
Your formula needs to be written as it applies to the very FIRST cell in the range it is applied to, as Ac Porta Via shows.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,951
Members
449,095
Latest member
nmaske

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