Index match match with additional Condition with another index

Alex_Excel

New Member
Joined
Apr 9, 2015
Messages
7
Hello,

I'm having trouble with my index formula..

Situation:
First table is data, second table is calculation

column
A B C D
Table range is A2:D6

[TABLE="width: 256"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD]GSSE
[/TD]
[TD]GTRS
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]70417
[/TD]
[TD]50
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]160784
[/TD]
[TD]150
[/TD]
[TD]200
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]70417
[/TD]
[TD]250
[/TD]
[TD]300
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]160784
[/TD]
[TD]350
[/TD]
[TD]400
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]
[/TD]
[TD]
[/TD]
[TD]GSSE
[/TD]
[TD]GTRS
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]70417
[/TD]
[TD]50
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]70417
[/TD]
[TD]50
[/TD]
[TD]100
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]160784
[/TD]
[TD]150
[/TD]
[TD]200
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]160784
[/TD]
[TD]150
[/TD]
[TD]200

[/TD]
[/TR]
</tbody>[/TABLE]



The second table comes from these formulas:

[TABLE="width: 1204"]
<colgroup><col span="2"><col span="2"></colgroup><tbody>[TR]
[TD] [/TD]
[TD] [/TD]
[TD]GSSE[/TD]
[TD]GTRS[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]70417[/TD]
[TD]=INDEX($A$2:$D$6;MATCH($B11;$B$2:$B$6;0);MATCH(C$10;$A$2:$D$2;0))[/TD]
[TD]=INDEX($A$2:$D$6;MATCH($B11;$B$2:$B$6;0);MATCH(D$10;$A$2:$D$2;0))[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]70417[/TD]
[TD]=INDEX($A$2:$D$6;MATCH($B12;$B$2:$B$6;0);MATCH(C$10;$A$2:$D$2;0))[/TD]
[TD]=INDEX($A$2:$D$6;MATCH($B12;$B$2:$B$6;0);MATCH(D$10;$A$2:$D$2;0))[/TD]
[/TR]
[TR]
[TD]D[/TD]
[TD]160784[/TD]
[TD]=INDEX($A$2:$D$6;MATCH($B13;$B$2:$B$6;0);MATCH(C$10;$A$2:$D$2;0))[/TD]
[TD]=INDEX($A$2:$D$6;MATCH($B13;$B$2:$B$6;0);MATCH(D$10;$A$2:$D$2;0))[/TD]
[/TR]
[TR]
[TD]C[/TD]
[TD]160784[/TD]
[TD]=INDEX($A$2:$D$6;MATCH($B14;$B$2:$B$6;0);MATCH(C$10;$A$2:$D$2;0))[/TD]
[TD]=INDEX($A$2:$D$6;MATCH($B14;$B$2:$B$6;0);MATCH(D$10;$A$2:$D$2;0))[/TD]
[/TR]
</tbody>[/TABLE]


PROBLEM is: I get the same values for D and C in column A!!

How do I add an extra criteria so the result looks like the first table but only with formulas?

Extra: right now there is 2 times the letter D in column A. The number of times this value D appears in the column can change over time, the column is always sorted A-Z so all the values D will show under each other. Right now it's A3:A4 that contains the D, but if more D are added then the 4 will expand. Is it possible to include this in the answer please?
Same goes for C ofcourse ^^

Thank you!!

Much obliged,

Alex
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,223,214
Messages
6,170,774
Members
452,353
Latest member
strainu

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