Lookup using multiple critieria across ranges

LtCmdrData

Board Regular
Joined
Jan 24, 2018
Messages
58
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone,

I need help with a lookup formula that will allow me to enter two inputs and then lookup a value in a table that has multiple ranges (see below). The two inputs are weight and miles. Each of the inputs has multiple ranges to find the correct corresponding value. In essence it should look down and across in the table, in this case to find 0.15 and then multiple that times 2157 to equal 323.55. I am running Windows 10 with Office 365 but I don't have access to new formulas like XLOOKUP and FILTER yet so I need something older. I'm thinking maybe some type of INDEX/MATCH or SUMPRODUCT might work but I just don't know how to apply it given these number ranges. Any and all help would be much appreciated. Thank you.

Miles
WeightMilesRateWeight1-499500-9991000-14991500-19992000-9999
2157
1350​
325.551-499
0.21​
0.23​
0.24​
0.33​
0.34​
500-999
0.15​
0.19​
0.22​
0.24​
0.28​
1000-1999
0.12​
0.15
0.19​
0.21​
0.23​
2000-9999
0.08​
0.13​
0.15
0.16​
0.22​
10000-19999
0.07​
0.07​
0.08​
0.11​
0.13​
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
If you're happy to change the headers, how about
+Fluff v2.xlsm
ABCDEFGHIJ
1Miles
2WeightMilesRateWeight1500100015002000
321571350323.5510.210.230.240.330.34
45000.150.190.220.240.28
510000.120.150.190.210.23
620000.080.130.150.160.22
7100000.070.070.080.110.13
Summary
Cell Formulas
RangeFormula
C3C3=A3*INDEX(F3:J7,MATCH(A3,E3:E7,1),MATCH(B3,F2:J2,1))
 
Upvote 0
Solution
If you change the weight to read 0,500,1000,2000,10000 and miles to 0,500,1000,1500 and 2000 then you can use:

=INDEX(F3:J7,MATCH(A3,E3:E7),MATCH(B3,F2:J2))

If you do need to take into account the upper weight and miles ie 19999 and 9999 you could put a check in there first.
 
Upvote 0
If you're happy to change the headers, how about
+Fluff v2.xlsm
ABCDEFGHIJ
1Miles
2WeightMilesRateWeight1500100015002000
321571350323.5510.210.230.240.330.34
45000.150.190.220.240.28
510000.120.150.190.210.23
620000.080.130.150.160.22
7100000.070.070.080.110.13
Summary
Cell Formulas
RangeFormula
C3C3=A3*INDEX(F3:J7,MATCH(A3,E3:E7,1),MATCH(B3,F2:J2,1))
This is exactly what I needed. As usual I was trying to over complicate things. Thank you so much Fluff!
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,957
Messages
6,122,472
Members
449,087
Latest member
RExcelSearch

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