INDEX MATCH Query

tcarwardine

New Member
Joined
Jul 13, 2016
Messages
26
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi

I think this may be an Index/Match formula but not 100%

Trying to work out a cost based on two factors as displayed below.

Hardware Category
Berlin
Amsterdam
London
Frankfurt
Copenhagen
Lisbon
Madrid
Barcelona
1
£175
£175
£35
£175
£135
£235
£235
£235
2
£185
£185
£35
£15
£255
£255
£255
£255

<tbody>
</tbody>

Then I have a table to with drop downs to select which Hardware Category and which City for delivery:

Destination
Hardware Category
Cost

<tbody>
</tbody>

I am having trouble populating the Cost cell (C2)

Thanks in advance
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi

I think this may be an Index/Match formula but not 100%
You are correct.

Excel Workbook
ABCDEFGHI
1Hardware CategoryBerlinAmsterdamLondonFrankfurtCopenhagenLisbonMadridBarcelona
2117517535175135235235235
321851853515255255255255
4
5
6DestinationHardware CategoryCost
7Frankfurt215
INDEX MATCH
 
Last edited:
Upvote 0
Adjust the formula as necessary

Sheet1!A1 is "Hardware Category"
Sheet2!A1 is "Destination"

in Sheet2!C2
=INDEX(Sheet1!B2:I3,MATCH(A2,Sheet1!B$1:I$1,0),MATCH(B2,Sheet1!A$2:A$3,0))
 
Upvote 0
Maybe something like this.

Lets assume your first table is in the range A4:I6.

In C2
Code:
=OFFSET($A$4,MATCH($B$2,$A$5:$A$6,0),MATCH($A$2,$B$4:$I$4,0),1,1)

There are other ways of doing this as well.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,377
Members
448,955
Latest member
BatCoder

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