Conditional Formatting using 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'm trying to apply a formula to perform conditional formatting to highlight the cell if it doesn't equal the cell in a different column. Is that even possible? I used the conditional formatting tool, but my formula keeps getting rejected. Can anyone tell me what I'm doing wrong? :cry: I'm using the following formula to highlight and then will ask the cell to highlight a peach color:

=IF(O294<>N294)

1679443019083.png
 
With the formula shown in post#5 all you need to do is remove the closing bracket.
 
Upvote 0

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I never noticed until now that ST probably isn't a column label, it's two columns? S and T? Can't do that, right?
Are the cells you're trying to compare are merged S and T? The value would be in one or the other column but not as a combination.
Right. I am trying to conditionally format a column if it doesn't equal another column, but I guess that isn't possible with conditional formatting?
 
Upvote 0
With the formula shown in post#5 all you need to do is remove the closing bracket
It doesn't appear to be working accurately for some reason. If you see the image, it let me use =$Y4<>$T4 , but it is incorrectly highlighting those two you can see that are equal to each other.
It almost worked, but that, for example, should NOT be highlighted since they are equal to each other. :(

1679603556753.png
 

Attachments

  • 1679603372474.png
    1679603372474.png
    48.5 KB · Views: 1
Upvote 0
The formula needs to reflect the row in the applies to range, so it should be looking at row 1 not row 4
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

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