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)

1BCDE
2Equipment No.Old ID numberNew Id NumberLocation Tag
3A5427H-2001Side
4A5427H-2002Back
5A5427H2001Side
6A5427H2003Back

<tbody>
</tbody>


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.

 

Some videos you may like

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

atisyam

New Member
Joined
Sep 19, 2018
Messages
37
The question can only be solved through VBA which is not per my intention.
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,413
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,123,133
Messages
5,599,909
Members
414,345
Latest member
Jonathan43

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
Top