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

GSSE
GTRS
D
70417
50
100
D
160784
150
200
C
70417
250
300
C
160784
350
400


GSSE
GTRS
D
70417
50
100
C
70417
50
100
D
160784
150
200
C
160784
150
200


<tbody>
</tbody>



The second table comes from these formulas:

GSSEGTRS
D70417=INDEX($A$2:$D$6;MATCH($B11;$B$2:$B$6;0);MATCH(C$10;$A$2:$D$2;0))=INDEX($A$2:$D$6;MATCH($B11;$B$2:$B$6;0);MATCH(D$10;$A$2:$D$2;0))
C70417=INDEX($A$2:$D$6;MATCH($B12;$B$2:$B$6;0);MATCH(C$10;$A$2:$D$2;0))=INDEX($A$2:$D$6;MATCH($B12;$B$2:$B$6;0);MATCH(D$10;$A$2:$D$2;0))
D160784=INDEX($A$2:$D$6;MATCH($B13;$B$2:$B$6;0);MATCH(C$10;$A$2:$D$2;0))=INDEX($A$2:$D$6;MATCH($B13;$B$2:$B$6;0);MATCH(D$10;$A$2:$D$2;0))
C160784=INDEX($A$2:$D$6;MATCH($B14;$B$2:$B$6;0);MATCH(C$10;$A$2:$D$2;0))=INDEX($A$2:$D$6;MATCH($B14;$B$2:$B$6;0);MATCH(D$10;$A$2:$D$2;0))

<colgroup><col span="2"><col span="2"></colgroup><tbody>
</tbody>


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

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,215,560
Messages
6,125,523
Members
449,236
Latest member
Afua

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