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

[TABLE="width: 500"]
<tbody>[TR]
[TD]Person[/TD]
[TD]Pos[/TD]
[TD][/TD]
[TD]Pos[/TD]
[TD]Name 1[/TD]
[TD]Name 2[/TD]
[/TR]
[TR]
[TD]Player A[/TD]
[TD]1[/TD]
[TD][/TD]
[TD]1[/TD]
[TD]Player A[/TD]
[TD]Player E[/TD]
[/TR]
[TR]
[TD]Player B[/TD]
[TD]2[/TD]
[TD][/TD]
[TD]2[/TD]
[TD]Player B[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Player C[/TD]
[TD]3[/TD]
[TD][/TD]
[TD]3[/TD]
[TD]Player C[/TD]
[TD]Player F[/TD]
[/TR]
[TR]
[TD]Player D[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Player E[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Player F[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Player G[/TD]
[TD]4[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 336"]
<colgroup><col span="2"><col><col span="2"><col></colgroup><tbody></tbody>[/TABLE]
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
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
PersonPosPosName 1Name 2
Player APlayer APlayer E
Player BPlayer B
Player CPlayer CPlayer FPlayer G
Player DPlayer D
Player E
Player F
Player G

<tbody>
</tbody><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: right"][/TD]

[TD="align: right"][/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"]1[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]2[/TD]
[TD="align: right"][/TD]
[TD="align: right"]2[/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"]3[/TD]

[TD="align: center"]5[/TD]

[TD="align: right"]4[/TD]
[TD="align: right"][/TD]
[TD="align: right"]4[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"]1[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]7[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]8[/TD]

[TD="align: right"]3[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

</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,223,964
Messages
6,175,659
Members
452,666
Latest member
AllexDee

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