Index/Match formula help

Ben171

Board Regular
Joined
Jul 2, 2021
Messages
88
Hi, i have the following carriage cost table on a sheet called "Carriage Matrix"

1640273646312.png


The headings of each column B:E is the different type of deliveries e.g. Pallet standard, pallet next day etc.
The prices for these depends on the zones as you can see in column A.

I then have my main data sheet called "MainData". I want to use index/match to fill in Column N "Carriage Cost" depending on what delivery type is chosen in Column G and which zone is chosen in column N

1640273308477.png


Hope that is clear, I think index/match is the best way of going about this but i could be wrong. I want Column N to automatically be filled based on delivery type in Column G and zone in column M by referencing the carriage table on the sheet "Carriage Matrix" shown above
 
Last edited:

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
And, what should the answers be in column N and how do you derive them?

Something like:

continents.xlsx
ABCDEFGHIJKLMN
1ZonePALSTDPAL-OVERPAL2030APAL1200ZoneOur Cost
2135405550PAL-OVER140
3338545853PALSTD570
4570849085PAL-OVER584
5NI110110110110PALSTD570
Carriage Matrix
Cell Formulas
RangeFormula
N2:N5N2=INDEX($A$2:$E$5,MATCH(M2,$A$2:$A$5,0),MATCH(G2,$A$1:$E$1,0))
 
Last edited:
Upvote 0
And, what should the answers be in column N and how do you derive them?
Hi, Sorry i should have been more clear on this.

In column N should be the carriage cost found in the carriage matrix. (screenshot 1)

E.g. If column G is PALOVER and column M is Zone 1 then in N it will be 40

If column G is PALSTD and column M is Zone 5 then it should be 70

Hope that makes sense
 
Upvote 0
And, what should the answers be in column N and how do you derive them?

Something like:

continents.xlsx
ABCDEFGHIJKLMN
1ZonePALSTDPAL-OVERPAL2030APAL1200ZoneOur Cost
2135405550PAL-OVER140
3338545853PALSTD570
4570849085PAL-OVER584
5NI110110110110PALSTD570
Carriage Matrix
Cell Formulas
RangeFormula
N2:N5N2=INDEX($A$2:$E$5,MATCH(M2,$A$2:$A$5,0),MATCH(G2,$A$1:$E$1,0))

This looks good, however the Carriage table is on a seperate sheet called "Carriage Matrix", and column N is on a different sheet (The main data sheet)
 
Upvote 0
Using your formula i think i have managed it with the following:

VBA Code:
=INDEX('Carriage Matrix'!A$2:E$5,MATCH(M80,'Carriage Matrix'!A$2:A$5,0),MATCH(G80,'Carriage Matrix'!A$1:E$1,0))

Just need to check this has done it accurately
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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