V/H Lookup or INDEX

jake424

New Member
Joined
Dec 5, 2013
Messages
13
I'm trying to look up rates based off of weight and miles.


Weight
Miles500100015002000
250
4.56.58.510.5
500
7.59.511.513.5
75012.514.516.518.5

<tbody>
</tbody>

I have a cell where I type in the weight and another cell where I type in the miles. I want the 3rd table to be the rate

Weight675
Miles300
RateXX

<tbody>
</tbody>

I know the answer should be 4.5, but not sure how to look it up. Do I use vlookup, hlookup, INDEX, or a combination?


Thanks!
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN

Marcílio_Lobão

Well-known Member
Joined
Oct 7, 2013
Messages
808
Office Version
  1. 2007
Platform
  1. Windows
jake424, Good afternoon.

Your scenario:

ABCDE
1Weight
2Miles500100015002000
32504.56.58.510.5
45007.59.511.513.5
575012.514.516.518.5

<tbody>
</tbody>

G2 --> WEIGHT --> 675

G3 --> MILES ----> 300

G4 --> FORMULA --> =INDEX($B$3:$E$5, MATCH(G3, $A$3:$A$5, 1), MATCH(G2, $B$2:$E$2, 1))

Is that what you want?
I hope it helps.
 

Chihiro

New Member
Joined
Dec 2, 2016
Messages
32
Assuming Miles in A3:A5, Weight in B2:E2 and data table in B3:E5

I'd do something like...
=INDEX(B3:E5,MATCH(LOOKUP(C9,A3:A5),A3:A5),MATCH(LOOKUP(C8,B2:E2),B2:E2))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,423
Messages
5,837,152
Members
430,479
Latest member
mamush200

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
Top