Conditional highlighting based on the value of multiple cells

rogueakula

New Member
Joined
Apr 23, 2018
Messages
19
I have a large list of items that I want to verify. There are two sheets, one with the raw data and the second with a list of items. Set up kind of like this:

Sheet One
[TABLE="width: 500"]
<tbody>[TR]
[TD]Host[/TD]
[TD]User[/TD]
[/TR]
[TR]
[TD]host1[/TD]
[TD]user1[/TD]
[/TR]
[TR]
[TD]host1[/TD]
[TD]user2[/TD]
[/TR]
[TR]
[TD]host2[/TD]
[TD]user1[/TD]
[/TR]
[TR]
[TD]host2[/TD]
[TD]user2[/TD]
[/TR]
[TR]
[TD]host3[/TD]
[TD]user3[/TD]
[/TR]
</tbody>[/TABLE]

Sheet 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Host[/TD]
[TD]User[/TD]
[/TR]
[TR]
[TD]host1[/TD]
[TD]user1[/TD]
[/TR]
[TR]
[TD]host2[/TD]
[TD]user2[/TD]
[/TR]
[TR]
[TD]host3[/TD]
[TD]user3[/TD]
[/TR]
</tbody>[/TABLE]

What I would like to do is highlight the user in sheet one based on the username and host matching in sheet 2. I am sure that I can do this but it is more complicated than then a simple conditional highlight. Thank you guys so much for your help!

-Josh
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
You can do it with conditional formatting.
On sheet1 select B2:B & last row > CF > New rule > use a formula > enter
=INDEX(Sheet2!$A$2:$A$4,MATCH(B2,Sheet2!$B$2:$B$4,0))
Select format > OK
 
Upvote 0

Forum statistics

Threads
1,223,885
Messages
6,175,184
Members
452,615
Latest member
bogeys2birdies

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