Conditional Formatting & VLOOKUP

VickiR

New Member
Joined
Nov 16, 2015
Messages
6
Hi, I can't seem to get this to work. Any assistance would be greatly appreciated. I am trying to use conditional formatting on sheet 1 to highlight green any sales months that the seller was over goal based on their goal data on sheet 2. Sheet two contains the seller's goal data. I need to do a vlookup to find the sellers on sheet 2 to identify their goal. There are hundreds of sellers and they are not in order. This is what I came up with and it doesn't seem to work: =C5>VLOOKUP($B$5,GOAL!$B$5:$C$53,2,FALSE)

Sheet 1 (Seller Sales)


[TABLE="width: 508"]
<colgroup><col><col span="6"></colgroup><tbody>[TR]
[TD] [/TD]
[TD]Day1[/TD]
[TD]Day2[/TD]
[TD]Day3[/TD]
[TD]Day4[/TD]
[TD]Day5[/TD]
[TD]Day6[/TD]
[/TR]
[TR]
[TD]Seller 1[/TD]
[TD] 14,275[/TD]
[TD] 43,816[/TD]
[TD] 15,251[/TD]
[TD] 7,738[/TD]
[TD] 11,646[/TD]
[TD] 8,814[/TD]
[/TR]
[TR]
[TD]Seller 2[/TD]
[TD] 6,652[/TD]
[TD] 7,881[/TD]
[TD] 9,880[/TD]
[TD] 3,261[/TD]
[TD] 6,724[/TD]
[TD] 7,595[/TD]
[/TR]
[TR]
[TD]Seller 3[/TD]
[TD] 11,560[/TD]
[TD] 8,301[/TD]
[TD] 2,552[/TD]
[TD] 12,167[/TD]
[TD] 2,472[/TD]
[TD] 13,412[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Sheet 2 (Seller Goal)

[TABLE="width: 138"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD][/TD]
[TD] GOAL [/TD]
[/TR]
[TR]
[TD]Seller 1[/TD]
[TD] 8,083[/TD]
[/TR]
[TR]
[TD]Seller 10[/TD]
[TD] 10,044[/TD]
[/TR]
[TR]
[TD]Seller 5[/TD]
[TD] 10,730[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Thank you very much, :)
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Assuming your data starts in cell B2
Follow the next steps:
- In sheet2 "Goal" select the columns of sellers and their goal, for example A and B.
- In the name box type sellers and press enter
- In the conditional format, put the following formula
=B2 > =VLOOKUP($A2, sellers, 2,0)
- In applies to
=$B$2:$G$1000

<table style="font-family:Arial; font-size:12pt; border-style: groove ;border-color:#0000FF;background-color:#fffcf9; color:#000000; "><tr><td ><b>Sheet1</b></td></tr></table><table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /><col style="width:76.04px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td><td >C</td><td >D</td><td >E</td><td >F</td><td >G</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td > </td><td style="background-color:#ffff00; color:#333333; font-family:Verdana; font-size:9pt; ">Day1</td><td style="background-color:#ffff00; color:#333333; font-family:Verdana; font-size:9pt; ">Day2</td><td style="background-color:#ffff00; color:#333333; font-family:Verdana; font-size:9pt; ">Day3</td><td style="background-color:#ffff00; color:#333333; font-family:Verdana; font-size:9pt; ">Day4</td><td style="background-color:#ffff00; color:#333333; font-family:Verdana; font-size:9pt; ">Day5</td><td style="background-color:#ffff00; color:#333333; font-family:Verdana; font-size:9pt; ">Day6</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td style="background-color:#fafafa; color:#333333; font-family:Verdana; font-size:9pt; ">Seller 1</td><td style="background-color:#92d050; text-align:right; ">14,275</td><td style="background-color:#92d050; text-align:right; ">43,816</td><td style="background-color:#92d050; text-align:right; ">15,251</td><td style="background-color:#fafafa; text-align:right; ">7,738</td><td style="background-color:#92d050; text-align:right; ">11,646</td><td style="background-color:#92d050; text-align:right; ">8,814</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td style="background-color:#fafafa; color:#333333; font-family:Verdana; font-size:9pt; ">Seller 2</td><td style="background-color:#fafafa; text-align:right; ">6,652</td><td style="background-color:#fafafa; text-align:right; ">7,881</td><td style="background-color:#92d050; text-align:right; ">9,880</td><td style="background-color:#fafafa; text-align:right; ">3,261</td><td style="background-color:#fafafa; text-align:right; ">6,724</td><td style="background-color:#fafafa; text-align:right; ">7,595</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td style="background-color:#fafafa; color:#333333; font-family:Verdana; font-size:9pt; ">Seller 3</td><td style="background-color:#fafafa; text-align:right; ">11,560</td><td style="background-color:#fafafa; text-align:right; ">8,301</td><td style="background-color:#fafafa; text-align:right; ">2,552</td><td style="background-color:#92d050; text-align:right; ">12,167</td><td style="background-color:#fafafa; text-align:right; ">2,472</td><td style="background-color:#92d050; text-align:right; ">13,412</td></tr></table>

<table style="font-family:Arial; font-size:12pt; border-style: groove ;border-color:#0000FF;background-color:#fffcf9; color:#000000; "><tr><td ><b>Sheet2 GOAL</b></td></tr></table><table border="1" cellspacing="0" style="font-family:Calibri,Arial; font-size:11pt; background-color:#ffffff; "> <colgroup><col style="font-weight:bold; width:30px; " /><col style="width:76.04px;" /><col style="width:76.04px;" /></colgroup><tr style="background-color:#cacaca; text-align:center; font-weight:bold; font-size:8pt; "><td > </td><td >A</td><td >B</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >1</td><td style="background-color:#ffff00; ">SELLER</td><td style="background-color:#ffff00; ">GOAL</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >2</td><td >Seller 1</td><td style="text-align:right; ">8,083</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >3</td><td >Seller 10</td><td style="text-align:right; ">10,044</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >4</td><td >Seller 5</td><td style="text-align:right; ">10,730</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >5</td><td >Seller 2</td><td style="text-align:right; ">9,000</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >6</td><td >Seller 3</td><td style="text-align:right; ">12,000</td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >7</td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >8</td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >9</td><td > </td><td > </td></tr><tr style="height:19px ;" ><td style="font-size:8pt; background-color:#cacaca; text-align:center; " >10</td><td > </td><td > </td></tr></table>
 
Upvote 0
Additional Information


On Sheet1
2680f96e5b458e1aab30a130c5f8e60b.jpg



On sheet1, add conditional format, select cell B2:

32c5503744e583949a69018363a0bb5f.jpg
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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