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

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
While your help is very, very much appreciated, there is not need to yell. Excel kept automatically changing that number on me, so I didn't know it changed it again there. I'm not purposely not listening.
Who's yelling?:unsure:
In the on-line world, typing in all caps is how yelling is communicated.

The beginning of my response was actually an answer to your question/comment here:
Just doesn't want to work for me. Unless I am STILL missing something.
Perhaps it would have flowed a bit better if I included that quote above my reply, so it is clear what that was in response to.

It appeared to me that you still weren't understanding what we were explaining, because the image you posted had the exact same situation/issue that we were telling you about.
Sometimes, it is easier to just clear all rule from the sheet and start over than to edit an existing one.
 
Upvote 1
You are welcome.

Sorry for the miscommunication.
Sometimes tone can be hard to convey and misinterpretted in writing.
I often use exclamation points to draw attention to important points (along with underlining and/or bold text, etc).
 
Upvote 1
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

Forum statistics

Threads
1,215,616
Messages
6,125,860
Members
449,266
Latest member
davinroach

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