Using Conditional Formatting to highlight one of a list of values

steveh8204

Board Regular
Joined
Aug 20, 2018
Messages
143
What is the easiest way to use Conditional Formatting to highlight any value in a designated column (B for example) in a table that is equal to one of various values from another table.

For example, in Sheet1 if there was a table of first names how would I highlight one if it equalled one of 5 names in a separate table on Sheet2 (which would just be a table of qualifying names)? And, ideally, how would I highlight the whole row not just the cell?

Thanks in advance for any help!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
How about
+Fluff v2.xlsm
ABCDEFGH
1NameOwnerNames
2Tom PearceOwner1Peter Davy
3Bill BrewerOwner2Harry Hawke
4Jan StewerOwner3Bill Brewer
5Peter GurneyOwner4
6Peter DavyOwner5
7Dan'l WhiddonOwner6
8Harry HawkeOwner7
9Tom CobleyOwner8
10
11
Master
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:B9Expression=MATCH($A2,$H$2:$H$4,0)textNO
 
Upvote 0
like this?

Book1
ABCDEFGHI
1Name1
2Name2
3Name3
4Name4
5Name5
6Name6
7Name7
8Name8
9Name9
10Name10
11
12
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
1:13Expression=COUNTIF(Sheet2!$A:$A,$A1)>=1textNO


Book1
ABCD
1Name2
2Name4
3Name6
4Name8
5Name10
6Name12
7Name14
8Name16
9Name18
10Name20
11
Sheet2
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,798
Messages
6,121,630
Members
449,041
Latest member
Postman24

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