Conditional Formatting-simple

MCosca

New Member
Joined
Jul 21, 2017
Messages
23
I am not understanding this and obviously doing something wrong because this sounds very simple

All I want to do is have the value in column N turn yellow if it doesnt equal the value in column J.

What am I doing wrong? The cell is yellow and stays

=n2<>j2
 
Last edited:
I thought I had it figured out adding a step in the Macro, to TRIM the values but I must not have done it correctly because it still had the extra balnk spaces in column N.
Where did this data come from? Did it come from some external program or the web?
Sometimes, they have special characters (that are not normal spaces), so the TRIM function does not work on them.
Are these extra characters at the beginning or the end of each of the entries?
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
This is the problem, in one cell you have the data as text and in the other cell you have the data as a number.

1699893008635.png


So either leave them the same or change the formula in the conditional formatting to this:

Excel Formula:
=TRIM(J2)=TRIM(N2)
In this way the 2 data will be converted to text.

Regards
Dante Amor
😊
 
Upvote 0

Forum statistics

Threads
1,215,133
Messages
6,123,232
Members
449,092
Latest member
SCleaveland

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