Index Match for multiple values with same results

johnrlalor

New Member
Joined
Feb 14, 2014
Messages
40
Hi,
I am trying to use the INDEX MATCH function to populate Columns E & F in the example below however I'm not having any luck, can anyone advise how to populate multiple values where the results are the same?
Thanks for any feedback / assistance

PersonPosPosName 1Name 2
Player A11Player APlayer E
Player B22Player B
Player C33Player CPlayer F
Player D4
Player E1
Player F3
Player G4

<tbody>
</tbody>

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

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Re: Help using Index Match for multiple values with same results


Book1
ABCDEFG
1PersonPosPosName 1Name 2
2Player A11Player APlayer E
3Player B22Player B
4Player C33Player CPlayer F
5Player D44Player DPlayer G
6Player E1
7Player F3
8Player G4
Sheet1


In E2 control+shift+enter, not just enter, copy across, and down:

=IFERROR(INDEX($A$2:$A$8,SMALL(IF($B$2:$B$8=$D2,ROW($A$2:$A$8)-ROW($A$2)+1),COLUMNS($E2:E2))),"")

If AGGREGATE is available on your system...

In E2 just enter, copy across, and down:

=IFERROR(INDEX($A$2:$A$8,AGGREGATE(15,6,(ROW($A$2:$A$8)-ROW($A$2)+1)/($B$2:$B$8=$D2),COLUMNS($E2:E2))),"")
 
Upvote 0
Re: Help using Index Match for multiple values with same results

If AGGREGATE is available on your system...

In E2 just enter, copy across, and down:

=IFERROR(INDEX($A$2:$A$8,AGGREGATE(15,6,(ROW($A$2:$A$8)-ROW($A$2)+1)/($B$2:$B$8=$D2),COLUMNS($E2:E2))),"")

That's worked perfectly, thanks so much for your help
 
Upvote 0
Re: Help using Index Match for multiple values with same results

If AGGREGATE is available on your system...

In E2 just enter, copy across, and down:

=IFERROR(INDEX($A$2:$A$8,AGGREGATE(15,6,(ROW($A$2:$A$8)-ROW($A$2)+1)/($B$2:$B$8=$D2),COLUMNS($E2:E2))),"")

One other item relating to this, If I have a possible 3rd value for a particular position what do I need to update in the code to get this to work?
Thanks
 
Upvote 0
Re: Help using Index Match for multiple values with same results

Care to post a sample along with the desired output?
 
Upvote 0
Re: Help using Index Match for multiple values with same results

Care to post a sample along with the desired output?
Sorry!

A
BCDEFG
1PersonPosPosName 1Name 2
2Player A11Player APlayer E
3Player B22Player B
4Player C33Player CPlayer FPlayer G
5Player D44Player D
6Player E1
7Player F3
8Player G3

<tbody>
</tbody><thead>
</thead><tbody>
</tbody>
 
Upvote 0
Re: Help using Index Match for multiple values with same results


Book1
BCDEFGH
1PersonPosPosName 1Name 2
2Player A11Player APlayer E
3Player B22Player B
4Player C33Player CPlayer FPlayer G
5Player D44Player D
6Player E1
7Player F3
8Player G3
Sheet1


The formula which you already have does deliver exactly that output, i.e.:

In F2 enter, copy across, and down:

=IFERROR(INDEX($B$2:$B$8,AGGREGATE(15,6,(ROW($B$2:$B$8)-ROW($B$2)+1)/($C$2:$C$8=$E2),COLUMNS($F2:F2))),"")
 
Upvote 0

Forum statistics

Threads
1,214,822
Messages
6,121,770
Members
449,049
Latest member
greyangel23

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