VLookup Not Working....And I am Not Sure Why

Jingles3X

New Member
Joined
Oct 20, 2021
Messages
34
Office Version
  1. 2013
Platform
  1. Windows
Hello! I have gotten some great help getting to this point in my project, and I am very grateful for that.
Currently, I am having Vlookup issues. Basically, I have a table that lists 3 columns, as follows " If the price is between 1.00 (first column), and 10.00 (second column) then the multiplier should be 5 (third Column). This data is on one worksheet. The place I am putting the formula is on another worksheet in column AP. I believe it should be working, but am not sure why it is not...

This mini sheet is where the formula is being entered, in AP9

FRP-In Progress.xlsx
TUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQ
4
5Pricing Calculation
6Plan PricingAuto FillsAuto FillsManually EnterAuto FillsManually EnterAuto FillsAuto Fills
7Standard PriceSecondary RepairPlan Savings !Diagnostic ChargeLabor RateTime To CompleteAdvantage Discount %Materials CostMaterials MarkupWarranty Reserve
8
9#N/A#N/A#N/A#N/A$ 95.00$ 154.881.000.85$ 8.00#N/A3%
1030225720745$ 95.00$ 154.880.500.85$ 26.005.003%
1140434330961$ 95.00$ 154.880.750.85$ 55.003.503%
1252644743179$ 95.00$ 154.880.750.85$ 105.003.003%
13836711741125$ 95.00$ 154.880.750.85$ 250.002.503%
14961817866144$ 95.00$ 154.880.750.85$ 375.002.003%
15171114551616257$ 95.00$ 154.880.750.85$ 1,200.001.253%
16193116421836290$ 95.00$ 154.880.750.85$ 1,600.001.083%
1721118011632$ 95.00$ 154.880.750.85$ 65.003%
181160116116$ 154.880.75$ 134.00
191160116116$ 154.880.75$ 65.00
2021118011632$ 95.00$ 154.880.750.85$ 234.003%
2121118011632$ 95.00$ 154.880.750.85$ 32.003%
2221118011632$ 95.00$ 154.880.750.85$ 123.003%
2321118011632$ 95.00$ 154.880.750.85$ 123.003%
2421118011632$ 95.00$ 154.880.750.85$ 365.003%
2521118011632$ 95.00$ 154.880.750.85$ 43.003%
2621118011632$ 95.00$ 154.880.750.85$ 56.003%
2721118011632$ 95.00$ 154.880.750.85$ 67.003%
2821118011632$ 95.00$ 154.880.750.85$ 87.003%
2921118011632$ 95.00$ 154.880.750.85$ 987.003%
3021118011632$ 95.00$ 154.880.750.853%
Flat Rate Book
Cell Formulas
RangeFormula
T9:T30T9=SUM((AL9*AM9)+(AO9*AP9)+AQ9)+AK9
X9,X11:X30X9=SUM(T9*AN9)
AB9:AB30AB9=SUM(T9-AK9)
AF9:AF30AF9=SUM(T9-X9)
X10X10=SUM(T10*AN9)
AP9AP9=VLOOKUP(AO9,'Set-Up'!$C$24:$D$32,'Set-Up'!E24:E32)
AP11:AP14AP11=IF(AND(AO11>'Set-Up'!B26,AO11<'Set-Up'!D26),'Set-Up'!E26)
AP15:AP16AP15=IF(AND(AO15>'Set-Up'!B31,AO15<'Set-Up'!D31),'Set-Up'!E31)
AK9AK9='Set-Up'!F11
AK10AK10='Set-Up'!F11
AK11AK11='Set-Up'!F11
AK12AK12='Set-Up'!F11
AK13AK13='Set-Up'!F11
AK14AK14='Set-Up'!F11
AK15AK15='Set-Up'!F11
AK16AK16='Set-Up'!F11
AK17AK17='Set-Up'!F11
AN9AN9='Set-Up'!F45
AN10AN10='Set-Up'!F45
AN11AN11='Set-Up'!F45
AN12AN12='Set-Up'!F45
AN13AN13='Set-Up'!F45
AN14AN14='Set-Up'!F45
AN15AN15='Set-Up'!F45
AN16AN16='Set-Up'!F45
AN17AN17='Set-Up'!F45
AQ9AQ9='Set-Up'!F15
AQ10AQ10='Set-Up'!F15
AQ11AQ11='Set-Up'!F15
AQ12AQ12='Set-Up'!F15
AQ13AQ13='Set-Up'!F15
AQ14AQ14='Set-Up'!F15
AQ15AQ15='Set-Up'!F15
AQ16AQ16='Set-Up'!F15
AQ17AQ17='Set-Up'!F15
AL9AL9='Labor Calculator'!R23
AL10AL10='Labor Calculator'!R23
AL11AL11='Labor Calculator'!R23
AL12AL12='Labor Calculator'!R23
AL13AL13='Labor Calculator'!R23
AL14AL14='Labor Calculator'!R23
AL15AL15='Labor Calculator'!R23
AL16AL16='Labor Calculator'!R23
AL17AL17='Labor Calculator'!R23
AL18AL18='Labor Calculator'!R23
AL19AL19='Labor Calculator'!R23
AK20AK20='Set-Up'!F11
AL20AL20='Labor Calculator'!R23
AK21AK21='Set-Up'!F11
AL21AL21='Labor Calculator'!R23
AK22AK22='Set-Up'!F11
AL22AL22='Labor Calculator'!R23
AK23AK23='Set-Up'!F11
AL23AL23='Labor Calculator'!R23
AK24AK24='Set-Up'!F11
AL24AL24='Labor Calculator'!R23
AK25AK25='Set-Up'!F11
AL25AL25='Labor Calculator'!R23
AK26AK26='Set-Up'!F11
AL26AL26='Labor Calculator'!R23
AK27AK27='Set-Up'!F11
AL27AL27='Labor Calculator'!R23
AK28AK28='Set-Up'!F11
AL28AL28='Labor Calculator'!R23
AK29AK29='Set-Up'!F11
AL29AL29='Labor Calculator'!R23
AK30AK30='Set-Up'!F11
AL30AL30='Labor Calculator'!R23
AN20AN20='Set-Up'!F45
AN21AN21='Set-Up'!F45
AN22AN22='Set-Up'!F45
AN23AN23='Set-Up'!F45
AN24AN24='Set-Up'!F45
AN25AN25='Set-Up'!F45
AN26AN26='Set-Up'!F45
AN27AN27='Set-Up'!F45
AN28AN28='Set-Up'!F45
AN29AN29='Set-Up'!F45
AN30AN30='Set-Up'!F45
AQ20AQ20='Set-Up'!F15
AQ21AQ21='Set-Up'!F15
AQ22AQ22='Set-Up'!F15
AQ23AQ23='Set-Up'!F15
AQ24AQ24='Set-Up'!F15
AQ25AQ25='Set-Up'!F15
AQ26AQ26='Set-Up'!F15
AQ27AQ27='Set-Up'!F15
AQ28AQ28='Set-Up'!F15
AQ29AQ29='Set-Up'!F15
AQ30AQ30='Set-Up'!F15



This mini sheet is where the data is drawing from...

FRP-In Progress.xlsx
ABCDE
23Parts Cost Between This….And This…The Multiplier Should Be….
24$ -$ 25.005
25$ 25.01$ 50.004
26$ 50.01$ 100.003.5
27$ 100.01$ 200.003
28$ 200.01$ 350.002.5
29$ 350.01$ 500.002
30$ 500.01$ 1,000.001.5
31$ 1,000.01$ 1,500.001.25
32$ 1,500.00$ 200,000.001.075
Set-Up



Can anyone spot why this would not be working?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try

=VLOOKUP(AO9,'Set-Up'!$B$24:$E$32,4)

B24 will need to contain a zero.
 
Upvote 0
Try

=VLOOKUP(AO9,'Set-Up'!$B$24:$E$32,4)

B24 will need to contain a zero.

DOing it this way makes perfect sense to me.... but it is still returning a value of '5' for all items regardless of cost...
=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3) (when is substitute the last condition with 4 for the column as in your formula, it returns #ref.
Any other help would be truly appreciated.

FRP-In Progress.xlsx
TUVWXYZAAABACADAEAFAGAHAIAJAMANAOAPAQ
6Partner PricingManually EnterAuto FillsManually EnterAuto FillsAuto Fills
7Standard PriceSecondary RepairSecondary Rep. Partner $Time To CompletePartner Discount %Materials CostMaterials MarkupWarranty Reserve
8
9#REF!#REF!#REF!#REF!1.000.85$ 8.50#REF!3%
103022572071870.500.85$ 26.005.003%
114864133913520.750.85$ 55.005.003%
127366266415770.750.85$ 105.005.003%
1314611242136612300.750.85$ 250.005.003%
1420861773199117920.750.85$ 375.005.003%
1562115280611655050.750.85$ 1,200.005.003%
1682116980811673050.750.85$ 1,600.005.003%
175364564413970.750.85$ 65.005.03%
188817497867080.750.85$ 134.005.003%
192111801161050.750.85$ 65.003%
202111801161050.750.85$ 234.003%
212111801161050.750.85$ 32.003%
Flat Rate Book
Cell Formulas
RangeFormula
T9:T21T9=SUM((AL9*AM9)+(AO9*AP9)+AQ9)+AK9
X9,X11:X21X9=SUM(T9*AN9)
AB9:AB21AB9=SUM(T9-AK9)
AF9:AF21AF9=SUM(AB9*90%)
X10X10=SUM(T10*AN9)
AP9AP9=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,4)
AP10AP10=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3)
AP11AP11=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3)
AP12AP12=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3)
AP13AP13=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3)
AP14AP14=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3)
AP15AP15=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3)
AP16AP16=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3)
AP17AP17=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3)
AP18AP18=+VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3)
AN9AN9='Set-Up'!F45
AN10AN10='Set-Up'!F45
AN11AN11='Set-Up'!F45
AN12AN12='Set-Up'!F45
AN13AN13='Set-Up'!F45
AN14AN14='Set-Up'!F45
AN15AN15='Set-Up'!F45
AN16AN16='Set-Up'!F45
AN17AN17='Set-Up'!F45
AN18AN18='Set-Up'!F45
AN19AN19='Set-Up'!F45
AN20AN20='Set-Up'!F45
AN21AN21='Set-Up'!F45
AQ9AQ9='Set-Up'!F15
AQ10AQ10='Set-Up'!F15
AQ11AQ11='Set-Up'!F15
AQ12AQ12='Set-Up'!F15
AQ13AQ13='Set-Up'!F15
AQ14AQ14='Set-Up'!F15
AQ15AQ15='Set-Up'!F15
AQ16AQ16='Set-Up'!F15
AQ17AQ17='Set-Up'!F15
AQ18AQ18='Set-Up'!F15
AQ19AQ19='Set-Up'!F15
AQ20AQ20='Set-Up'!F15
AQ21AQ21='Set-Up'!F15



FRP-In Progress.xlsx
ABCD
240.0025.005
2525.0150.004
2650.01100.003.5
27100.01200.003
28200.01350.002.5
29350.01500.002
30500.051,000.001.5
311,001.011,500.001.25
321,500.01200,000.001.075
33
Set-Up
 
Upvote 0
Try

Book2
TUVWXYZAAABACADAEAFAGAHAIAJAKALAMANAOAPAQAR
6Partner PricingManually EnterAuto FillsManually EnterAuto FillsAuto Fills
7Standard PriceSecondary RepairSecondary Rep. Partner $Time To CompletePartner Discount %Materials CostMaterials MarkupWarranty Reserve
8
9#N/A#N/A#N/A#N/A108.5#N/A0
1013001301170.502650
1122002201980.7505540
12367.50367.5330.750.7501053.50
1375007506750.75025030
14937.50937.5843.750.7503752.50
1518000180016200.75012001.50
1620000200018000.75016001.250
1726002602340.7506540
184690469422.10.7501343.50
1926002602340.7506540
207020702631.80.75023430
2116001601440.7503250
22
23
Flat Rate Book
Cell Formulas
RangeFormula
T9:T21T9=SUM((AL9*AM9)+(AO9*AP9)+AQ9)+AK9
X9,X11:X21X9=SUM(T9*AN9)
AB9:AB21AB9=SUM(T9-AK9)
AF9:AF21AF9=SUM(AB9*90%)
X10X10=SUM(T10*AN9)
AP9:AP21AP9=+VLOOKUP(AO9,'Set-Up'!$C$24:$D$32,2,1)
AQ9:AQ21AQ9='Set-Up'!E15
AN9:AN21AN9='Set-Up'!E45
 
Upvote 0
A couple of things

The formula in AP 9 is returning a #REF! error because the 3rd argument in you VLOOKUP is 4. That means the lookup is trying to look in column 4 of B24:D32 in Set-Up. That of course is impossible since that range only has 3 columns.

If you look at all the other formulas in column AP, you will see that they all say VLOOKUP(AO9,....
1634961740500.png


That would indicate either
a) You manually copy/pasted the same formula individually to each cell (unlikely), or
b) You pasted the formula once and copied it down but your worksheet is set to Manual calculation rather than Automatic to the formulas did not adjust & calculate.

With that workbook open check File -> Options -> Formulas and make sure it is set to Automatic

1634961508957.png


Here it is working for me:
(Note too that I have removed the "+" at the start of the formula as that does nothing.

Jingles3X.xlsm
AOAP
7Materials CostMaterials Markup
8
98.55
10264
11553.5
121053
132502.5
143752
1512001.25
1616001.075
17653.5
181343
19653.5
202342.5
21324
Flat Rate Book
Cell Formulas
RangeFormula
AP9:AP21AP9=VLOOKUP(AO9,'Set-Up'!$B$24:$D$32,3)
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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