Conditional Formatting Based on Match to Separate List

sunday_storyteller

Board Regular
Joined
Jun 22, 2007
Messages
51
I have two worksheets with location names on them. Each location name is unique. The lists are generated for two different weeks. I would like to set conditional formatting so that if a Location on the 2nd sheet shows upon the 1st sheet, it is highlighted. (So I can flag which locations showed up twice in a row.)

Is this possible? To do a conditional formatting based on a list? That is, "if this location on Sheet2 is equal to a location on Sheet1, then highlight the location on Sheet2"

Thanks!

Calinda
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Assuming both lists are in column A.

Select column A in sheet2

Format > Conditional Formatting > "formula is"

=MATCH(A1,INDIRECT("sheet1!A:A"),0)

select desired formatting, OK
 
Upvote 0

Forum statistics

Threads
1,214,667
Messages
6,120,815
Members
448,990
Latest member
rohitsomani

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