Using Vlookup In a Range

jake424

New Member
Joined
Dec 5, 2013
Messages
13
I am trying to use a vlookup for two cells whose data are in a range of cells. The grid is in a range for weight and miles.

Weight10001100120013001400150016001700
Miles10991199129913991499159916991799
150757810862915967101910711124
511007868418969511006106111161171
15120083489395210121071113111901249
20125084590596510251086114612061267
25130085691897910411102116412251286
WeightMilesOutput
2271388???????

<tbody>
</tbody>

For the example above, I have miles ranges in columns and weight ranges in rows. My output for the example should be 1025 as it falls in the 201-250 Mile and 1300-1399 Range. Is there a vlookup or a match/index that could help me find that output without looking through the grid?


Thanks,
Jake
 

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
something like...


=INDEX(C3:J7,MATCH(A10,A3:A7),MATCH(B10,C1:J1))

A
B
C
D
E
F
G
H
I
J
1
Weight
1000
1100
1200
1300
1400
1500
1600
1700
2
Miles
1099
1199
1299
1399
1499
1599
1699
1799
3
1
50
757
810
862
915
967
1019
1071
1124
4
51
100
786
841
896
951
1006
1061
1116
1171
5
151
200
834
893
952
1012
1071
1131
1190
1249
6
201
250
845
905
965
1025
1086
1146
1206
1267
7
251
300
856
918
979
1041
1102
1164
1225
1286
8
9
Weight
Miles
Output
10
227
1388
1025
11

<TBODY>
</TBODY>
 
Upvote 0
something like...


=INDEX(C3:J7,MATCH(A10,A3:A7),MATCH(B10,C1:J1))

ABCDEFGHIJ
1Weight10001100120013001400150016001700
2Miles10991199129913991499159916991799
3150757810862915967101910711124
4511007868418969511006106111161171
515120083489395210121071113111901249
620125084590596510251086114612061267
725130085691897910411102116412251286
8
9WeightMilesOutput
1022713881025
11

<tbody>
</tbody>

Hello Weazel, thanks for the response! Would this work as well if all of the information/data (A1:J7) is on Sheet1 and my weight and miles and output columns are on Sheet2? I want to hide all of the data on Sheet1 and was wondering how it would work cross sheets?


Thanks again!

Jake
 
Upvote 0
it should work ok though you would need to modify the formula a little...

=INDEX(Sheet2!C3:J7,MATCH(A10,Sheet2!A3:A7),MATCH(B10,Sheet2!C1:J1))

and make sure that your weight and miles references are correct.
 
Upvote 0
it should work ok though you would need to modify the formula a little...

=INDEX(Sheet2!C3:J7,MATCH(A10,Sheet2!A3:A7),MATCH(B10,Sheet2!C1:J1))

and make sure that your weight and miles references are correct.

It worked perfectly! Thank you so much for your help, I appreciate it!
 
Upvote 0

Forum statistics

Threads
1,215,493
Messages
6,125,131
Members
449,206
Latest member
burgsrus

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