Highlight cells between columns if value does not match

atisyam

New Member
Joined
Sep 19, 2018
Messages
37
Hello. What I intended is for the cell in Column C to be highlighted if the value does not match with cell in Column D. The cells in both columns are not in the same row, so to know if it is matched is with respect to Column B and Column E. (i.e.C6 will be highlighted but C5 will not be highlighted)

[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]1[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[TD]E[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]Equipment No.[/TD]
[TD]Old ID number[/TD]
[TD]New Id Number[/TD]
[TD]Location Tag[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]A5427H[/TD]
[TD]-[/TD]
[TD]2001[/TD]
[TD]Side[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]A5427H[/TD]
[TD]-[/TD]
[TD]2002[/TD]
[TD]Back[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]A5427H[/TD]
[TD]2001[/TD]
[TD][/TD]
[TD]Side[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]A5427H[/TD]
[TD]2003[/TD]
[TD][/TD]
[TD]Back[/TD]
[/TR]
</tbody>[/TABLE]


This is a continuation from the thread: https://www.excelforum.com/excel-ge...based-on-criterias-from-different-column.html

So as the value in column C will be auto-matched with Column D, whenever the user changes the value, the value does not match. So I would like this cell to be highlighted only after the user has entered the value. I am not good with excel and I have tried these formulas inside conditional formatting:

=VLOOKUP($C1,$D1,3,FALSE) // nothing happened


=IF($C2=$D2,1,0) // all empty column got highlighted before user entered value. Even when value is correct, it still remains red

Hope that I could get some help for this. Thanks.

 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
Select C3:C6

In Conditional Formatting try this formula
=AND(ISNUMBER($C3),COUNTIFS($B:$B,$B3,$D:$D,$C3)=0)
pick the format you want

Hope this helps.

M.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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