conditional formatting

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,056
Office Version
  1. 365
Platform
  1. Windows
i am setting conditional formatting to a column to highlight where it is different to another column.

Formula is: =if($AF94<>$T94,1,0)

So, if those two cells are different, answer is True. This then formats the cell RED. This is applied to the $AF$94:$AF$622.

I have then used the same formula for each subsequent pair of columns: AG<>U, AH<>V, AI<>W, AJ<>X, AK<>Y, etc

On any cell in the first few columns (AG - AI), looking at the CF by selecting Manage Rules, shows the formula from above. =if($AF94<>$T94,1,0)

However, Column AJ goes awry. it still works but i am curious why its now showing =if($aj1048142<>$x1048142,1,0)

any ideas?
 
Last edited:

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
that happens when the formula is not recognised or something is changed in the conditional selection - i get that quite often
BUT
you dont need the IF
=$AF94<>$T94
will work
you should also be able to select
AG to AK
and then use without the $
=AF94<>T94
but does you selection start at row 94 - ????

insights.xlsx
UVWXYZAAABACADAEAFAGAHAI
93
94
95
96a
97
981aa
99
100
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AF94:AK102Expression=AF94<>T94textNO
 
  • Like
Reactions: ajm
Upvote 0
Solution
that happens when the formula is not recognised or something is changed in the conditional selection - i get that quite often
BUT
you dont need the IF
=$AF94<>$T94
will work
you should also be able to select
AG to AK
and then use without the $
=AF94<>T94
but does you selection start at row 94 - ????

insights.xlsx
UVWXYZAAABACADAEAFAGAHAI
93
94
95
96a
97
981aa
99
100
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
AF94:AK102Expression=AF94<>T94textNO
thanks etaf. i deleted then rewrote the formula and it worked. and yes, the data in this case started at row 94. also, for soooo many years i have been writing the whole if statement. never knew that i could just use the formula part, eg AF94<>T94.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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