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.

 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
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,214,653
Messages
6,120,755
Members
448,989
Latest member
mariah3

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