Column and Row match and Index

mat76

New Member
Joined
Aug 22, 2005
Messages
19
Hi,

Struggling to find the answer to this one and whatever formula I try is returning an error of #N/A

I have two worksheets the first with transport data - customer,collection point, delivery point, haulier and number of pallets - all this information is in columns; the second sheet with the rates show haulier, customer, validity, delivery point in columns and then pallet numbers run across a row with rates tying in underneath. i have simplified this below.

I am just trying to reference all the data and work out what the cost for the variables would be in the example the cell i'm trying to find is H8 (320) - any help would be hugely appreciated.

I have already tried the following and several modified versions:
=INDEX('RATE LOOKUPS'!$E$6:$I$9,MATCH(1,('MASTER DATA'!A:A='RATE LOOKUPS'!C:C)*('MASTER DATA'!B:B='RATE LOOKUPS'!B:B)*('MASTER DATA'!C:C='RATE LOOKUPS'!D:D)*('MASTER DATA'!D:D='RATE LOOKUPS'!A:A)*('MASTER DATA'!E:E='RATE LOOKUPS'!E5:I5),0))


Excel 2010
ABCDEFGHI
1CustomerOriginDestinationLinePalletsCost
2WALLMARTHONG KONGLOS ANGELESMaersk4?
3
4PALLETS
5LINEORIGINCUSTOMERDESTINATION12345
6MOLSHANGHAIWALLMARTWASHINGTON200275350420500
7EVERGREENSHANGHAICOSTCOSAN DIEGO250325400470550
8MAERSKHONG KONGWALLMARTLOS ANGELES100175250320400
9APLHONG KONGCOSTCONEW YORK150225300370450
Sheet9
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
mat76,

Perhaps something like..


Excel 2007
ABCDEFGHI
1CustomerOriginDestinationLinePalletsCost
2WALLMARTHONG KONGLOS ANGELESMaersk4320
3
4PALLETS
5LINEORIGINCUSTOMERDESTINATION12345
6MOLSHANGHAIWALLMARTWASHINGTON200275350420500
7EVERGREENSHANGHAICOSTCOSAN DIEGO250325400470550
8MAERSKHONG KONGWALLMARTLOS ANGELES100175250320400
9APLHONG KONGCOSTCONEW YORK150225300370450
Sheet4
Cell Formulas
RangeFormula
F2{=INDEX(E6:I9,MATCH(D2&B2&A2&C2,A6:A9&B6:B9&C6:C9&D6:D9,0),E2)}
Press CTRL+SHIFT+ENTER to enter array formulas.


Hope that helps.
 
Upvote 0
thanks,

have pasted directly in and checked references but returns #VALUE!, and other suggestions please? I'm on 2010 would that make a difference?
 
Upvote 0
On your OP you said that your data was on separate pages. The formula he gave you was for the data being on a single page. I'm guessing that you'll need to change the range references in order for the formula to work.
 
Upvote 0
I used the formual on the test data first (below) and tried to replicate the result above but no luck


Excel 2010
ABCDEFGHI
1CustomerOriginDestinationLinePalletsCost
2WALLMARTHONG KONGLOS ANGELESMAERSK4#VALUE!
3
4PALLETS
5LINEORIGINCUSTOMERDESTINATION12345
6MOLSHANGHAIWALLMARTWASHINGTON200.00275.00350.00420.00500.00
7EVERGREENSHANGHAICOSTCOSAN DIEGO250.00325.00400.00470.00550.00
8MAERSKHONG KONGWALLMARTLOS ANGELES100.00175.00250.00320.00400.00
9APLHONG KONGCOSTCONEW YORK150.00225.00300.00370.00450.00
10
11
12{=INDEX(E6:I9,MATCH(D2&B2&A2&C2,A6:A9&B6:B9&C6:C9&D6:D9,0),E2)}
Sheet9
 
Upvote 0
mat76,

You need to enter just the formula without the curly braces and then confirm with Ctrl + Shift + Enter ???????
 
Upvote 0
mat76,

You need to enter just the formula without the curly braces and then confirm with Ctrl + Shift + Enter ???????

Thanks Snakehips, i think it was the order of the references didn't match the order of the lookups as the curly brackets were a result of Ctrl + Shift + Enter; have also found that the below works as well having played around this morning

=INDEX(A6:I9,MATCH(A2&B2&C2&D2,C6:C9&B6:B9&D6:D9&A6:A9,0),E2+4)

really appreaciate your help
 
Upvote 0

Forum statistics

Threads
1,215,429
Messages
6,124,834
Members
449,192
Latest member
mcgeeaudrey

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