VLookup not working.

mrxlsx

Board Regular
Joined
Dec 15, 2012
Messages
95
Hello,

Good morning everyone here,


We have two sheets and first sheet with the following information where I need to run a VLOOKUP or INDEX MATCH to fetch the FreightKey from second sheet.

In Sheet-1

Weight
ModeFreightKey

<tbody>
</tbody>
10 Air AI20
4 Sea SE20
8 Rail RA20
200 Road RO200
58 Sea SE60



In Sheet-2

Weight
Mode Freight%FreightKey
20Air20%AI20
40Air22%AI40
60Air24%AI60
80Air26%AI80
100Air28%AI100
120Air30%AI120
140Air32%AI140
160Air34%AI160
180Air36%AI180
200Air38%AI200
20Sea5%SE20
40Sea6%SE40
60Sea7%SE60
80Sea8%SE80
100Sea9%SE100
120Sea10%SE120
140Sea11%SE140
160Sea12%SE160
180Sea13%SE180
200Sea14%SE200
20Road8%RO20
40Road9%RO40
60Road10%RO60
80Road11%RO80
100Road12%RO100
120Road13%RO120
140Road14%RO140
160Road15%RO160
180Road16%RO180
200Road17%RO200
20Rail6%RA20
40Rail7%RA40
60Rail8%RA60
80Rail9%RA80
100Rail10%RA100
120Rail11%RA120
140Rail12%RA140
160Rail13%RA160
180Rail14%RA180
200Rail15%RA200

<tbody>
</tbody>


I have some items to be shipped. The freight will be based on the weights of the items. Weight might be anything from 1 ton to 1000 tons.

By seeing in the second sheet, I need to run a lookup to fetch the FreightKey as the following.

If my items' weight is 8 ton and Mode is Air, my FreightKey should be AI20 (Because 8 tons fall in <=20 tons category so and Mode is Air so AI20

If my items' weight is 49 ton and Mode is Sea, my FreightKey should be SE60 (Because 49 tons fall in <=60 tons category so and Mode is Sea so SE60

It goes on for every item. Following is the file link to help you out.. I had tried the Vloookup and Index/Match, Multiple Index/Match but in vain.

What is the formula that I need to build in this case. Any help is greatly appreciated.

FreightKey - Download - 4shared - farida perveen
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Formula in H2 copied down:


Excel 2010
ABCDEFGH
1WeightModeFreight%FreightKeyWeightModeFreightKey
220Air20%AI2010AirAI20
340Air22%AI404SeaSE20
460Air24%AI608RailRA20
580Air26%AI80200RoadRO200
6100Air28%AI10058SeaSE60
7120Air30%AI120
8140Air32%AI140
9160Air34%AI160
10180Air36%AI180
11200Air38%AI200
1220Sea5%SE20
1340Sea6%SE40
1460Sea7%SE60
1580Sea8%SE80
16100Sea9%SE100
17120Sea10%SE120
18140Sea11%SE140
19160Sea12%SE160
20180Sea13%SE180
21200Sea14%SE200
2220Road8%RO20
2340Road9%RO40
2460Road10%RO60
2580Road11%RO80
26100Road12%RO100
27120Road13%RO120
28140Road14%RO140
29160Road15%RO160
30180Road16%RO180
31200Road17%RO200
3220Rail6%RA20
3340Rail7%RA40
3460Rail8%RA60
3580Rail9%RA80
36100Rail10%RA100
37120Rail11%RA120
38140Rail12%RA140
39160Rail13%RA160
40180Rail14%RA180
41200Rail15%RA200
Sheet1
Cell Formulas
RangeFormula
H2=INDEX(D$2:D$41,MATCH(1,INDEX((A$2:A$41>=F2)*(B$2:B$41=G2),),FALSE))
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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