Conditional Format - Highlight NON Duplicate Values (on another sheet)

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
594
Office Version
  1. 365
Hi
On sheet1, column B, I have a list of reference numbers. In sheet2, column A these may or may not appear.
In Sheet1, I would like the Cell in Column B highlighted IF it does NOT appear in Sheet2, column A
Blanks should also be ignored


Many thanks
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
You can not use references to other books or sheets for conditional format.

You could use a macro to look up the data in sheet2 ir it does NOT appear then fill the cell with a color
 
Upvote 0
Select B2 downwards & try this formula
=AND(B2<>"",NOT(ISNUMBER(MATCH(B2,Sheet2!A:A,0))))

Depending on your version of Xl this may not work.
 
Upvote 0
With 2010 onwards you can do it directly
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

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