Conditional formatting using VLOOKUP

tamdunk

New Member
Joined
Feb 9, 2018
Messages
8
Hi, I'm trying to set up conditional formatting where it's highlighted if someone has reached a certain number of checks in a column from another worksheet. I want it to check every row of column A and apply formatting if there has been more than 5 checks.

Sheet1
Column A is the users ID
Column F is where I want the conditional formatting to apply

Sheet 2
Column A is the users ID
Column H is the number of checks the user has had.

In the rule description for the conditional formatting I have used
=VLOOKUP(A:A, Sheet2!A2:H388, 8, FALSE) > 5

But it's not working. Does anyone know where I am going wrong?
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
The lookup_value of vlookup can not be an array
Code:
=VLOOKUP([COLOR=#FF0000]A:A[/COLOR], Sheet2!A2:H388, 8, FALSE) > 5

Select the cells in F that you want to conditional format and use this formula. Since the lookup value of A2 is a relative reference it will change as CF moved to the next row to A3 then A4....
Code:
=VLOOKUP(A2,Sheet2!$A$2:$H$388,8,0)>5
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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