How to approach this - multiple lookups?

MOB

Well-known Member
Joined
Oct 18, 2005
Messages
1,055
Office Version
  1. 365
Platform
  1. Windows
1603727393171.png


I am working on a little project to try to help quickly establish a price from a supplier's price spreadsheet.

So on another tab I would enter the following;

- Zone number
- Type
- Number of pallets (1,2,3,4 above)
- 24hr or 48hr

And the price should be pulled from the above data.

What is the best approach to this? I'd rather avoid changing the source data or adding helper data if possible!

TIA
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Can you please post your data using the XL2BB add-in, It saves members having to re-create your data. Thanks

Also what version of Excel are you using?
Please update your account details to show this, as it affects which functions you can use.
 
Upvote 0
Thanks

BSI PALLET RATES APRIL 2020 - MARCH 2021 V1 - EXCEL VERSION.xlsx
AEFGHIJKLM
91234
10ZONETYPE24HR48HR24HR48HR24HR48HR24HR48HR
111FULL£26.50£24.00£52.00£47.00£76.50£69.00£100.00£90.00
12EURO£25.00£22.50£49.00£44.00£72.00£64.50£94.00£84.00
13HALF£22.50£20.00£44.00£39.00£64.50£57.00£84.00£74.00
14QUARTER£20.00£18.00£39.00£35.00£57.00£51.00£74.00£66.00
15MICRO£18.00£35.00£51.00£66.00
16
172FULL£39.29£33.69£77.58£66.38£114.87£98.07£151.16£128.76
18EURO£36.49£32.58£71.98£64.16£106.47£94.74£139.96£124.32
19HALF£33.69£31.46£66.38£61.92£98.07£91.38£128.76£119.84
20QUARTER£31.46£29.21£61.92£57.42£91.38£84.63£119.84£110.84
21MICRO£28.09£55.18£81.27£106.36
22
233FULL£53.30£42.66£105.60£84.32£156.90£124.98£207.20£164.64
24EURO£52.18£42.10£103.36£83.20£153.54£123.30£202.72£162.40
25HALF£51.07£41.55£101.14£82.10£150.21£121.65£198.28£160.20
26QUARTER£49.95£40.98£98.90£80.96£146.85£119.94£193.80£157.92
27MICRO£47.70£94.40£140.10£184.80
MASTER
Cell Formulas
RangeFormula
I11:I14,H23:H27,I23:I26,H17:H21,I17:I20,H11:H15I11=G11*2-1
K11:K14,J23:J27,K23:K26,J17:J21,K17:K20,J11:J15K11=G11*3-3
M11:M14,L23:L27,M23:M26,L17:L21,M17:M20,L11:L15M11=G11*4-6
 
Upvote 0
Thanks for that.
Forgot to ask what version of Excel are you using?
Please update your account details to show this, as it affects which functions you can use.
 
Upvote 0
Many thanks for that.
I would suggest create named ranges for each table & then you can use a Vlookup, which is probably the simplest way.
+Fluff v2.xlsm
ABCDEFGHIJKLMNOPQRS
1
2
3
4
5
6
7
8
91234
10ZONETYPE24HR48HR24HR48HR24HR48HR24HR48HRZone257.42
111FULL26.524524776.56910090Typequarter
12EURO2522.549447264.59484Pallets2
13HALF22.520443964.5578474Service48hr
14QUARTER2018393557517466
15MICRO18355166
16
172FULL39.2933.6977.5866.38114.8798.07151.16128.76
18EURO36.4932.5871.9864.16106.4794.74139.96124.32
19HALF33.6931.4666.3861.9298.0791.38128.76119.84
20QUARTER31.4629.2161.9257.4291.3884.63119.84110.84
21MICRO28.0955.1881.27106.36
22
233FULL53.342.66105.684.32156.9124.98207.2164.64
24EURO52.1842.1103.3683.2153.54123.3202.72162.4
25HALF51.0741.55101.1482.1150.21121.65198.28160.2
26QUARTER49.9540.9898.980.96146.85119.94193.8157.92
27MICRO47.794.4140.1184.8
28
Master
Cell Formulas
RangeFormula
S10S10=VLOOKUP(R11,CHOOSE(R10,Zone_1,Zone_2,Zone_3),2*R12+(R13="48HR"),0)
I11:I14,H23:H27,I23:I26,H17:H21,I17:I20,H11:H15I11=G11*2-1
K11:K14,J23:J27,K23:K26,J17:J21,K17:K20,J11:J15K11=G11*3-3
M11:M14,L23:L27,M23:M26,L17:L21,M17:M20,L11:L15M11=G11*4-6
Named Ranges
NameRefers ToCells
Zone_1=Master!$E$10:$M$15S10
Zone_2=Master!$E$17:$M$21S10
Zone_3=Master!$E$23:$M$27S10
 
Upvote 0
That looks great, I'll have a play back in the office tomorrow :)

Many thanks
 
Upvote 0
That works perfectly :) Many thanks for your help!
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,053
Messages
6,122,888
Members
449,097
Latest member
dbomb1414

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