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.

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Hardware Category
[/TD]
[TD]Berlin
[/TD]
[TD]Amsterdam
[/TD]
[TD]London
[/TD]
[TD]Frankfurt
[/TD]
[TD]Copenhagen
[/TD]
[TD]Lisbon
[/TD]
[TD]Madrid
[/TD]
[TD]Barcelona
[/TD]
[/TR]
[TR]
[TD]1
[/TD]
[TD]£175
[/TD]
[TD]£175
[/TD]
[TD]£35
[/TD]
[TD]£175
[/TD]
[TD]£135
[/TD]
[TD]£235
[/TD]
[TD]£235
[/TD]
[TD]£235
[/TD]
[/TR]
[TR]
[TD]2
[/TD]
[TD]£185
[/TD]
[TD]£185
[/TD]
[TD]£35
[/TD]
[TD]£15
[/TD]
[TD]£255
[/TD]
[TD]£255
[/TD]
[TD]£255
[/TD]
[TD]£255
[/TD]
[/TR]
</tbody>[/TABLE]

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

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Destination
[/TD]
[TD]Hardware Category
[/TD]
[TD]Cost
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

I am having trouble populating the Cost cell (C2)

Thanks in advance
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
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,223,236
Messages
6,170,906
Members
452,366
Latest member
TePunaBloke

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