Return Multiple Matches Duplicate Lookup Values

Promptbeef

New Member
Joined
Jan 11, 2017
Messages
14
Hi there,

I'm looking for a formula to match a value within an array and return the results found.

I know how to you use vlookup/match/index formula's, but I can only return the first match found. I would like to return the first match in cell B2 and the second match inside B3, third inside B4, Etc.

So when the first match is found and placed inside A1 then the formula inside A2 should ignore the first match that is already found and show the next match value.

I want to look up "PG" from the all players page and have only the PG appear without #n/a Errors

this is the formula im using {=INDEX('All Players'!B2:B500,MATCH("PG"&'All Players'!B2,'All Players'!A2:A500&'All Players'!B2:B500,0))} and am getting #n/a's between correct matches

I would like to get this done with a formula and not with the autofilter option inside Excel.
This is a basketball table and is a small sample size the actual tables i'm using have over 200 players.

Example of what i want:

1st Page: PGs
PositionName
PGRussell Westbrook
PGIsaiah Thomas
PGJohn Wall

<tbody>
</tbody>


2nd Page: All Players
PositionName
PGRussell Westbrook
SGJames Harden
SFLebron James
PGIsaiah Thomas
CDemarcus Cousins
PGJohn Wall

<tbody>
</tbody>
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Hi,

take a look at this:


Excel 2016 (Windows) 64 bit
AB
1PositionName
2PGRussell Westbrook
3PGIsaiah Thomas
4PGJohn Wall
Sheet2
Cell Formulas
RangeFormula
B2{=INDEX('all players'!$B$2:$B$7, MATCH(0, IF($A2='all players'!$A$2:$A$7, COUNTIF($B$1:$B1, 'all players'!$B$2:$B$7), ""), 0))}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,218,220
Messages
6,141,231
Members
450,344
Latest member
renslaw

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