Index Match with duplicate names in the same column - Need correct formula.

Dugzilla

New Member
Joined
Oct 11, 2023
Messages
22
Office Version
  1. 2021
Platform
  1. MacOS
(I searched the forum but didn't find a solution that was meaningful.)

This is my current formula: =IFERROR(INDEX(Week_16!G:G,MATCH($A5,Week_16!B:B,0)),"DNP")

However, Week_16!B:B has duplicate names. I can get around this by filtering on Week_16!D:D but haven't been able to figure out the correct formula.

What would be the correct way to write the formula?

You all have been a huge help in the past and I appreciate your consideration.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
How about
Excel Formula:
=filter(Week_16!G:G,$A5=Week_16!B:B,"DNP")
 
Upvote 0
How about
Excel Formula:
=filter(Week_16!G:G,$A5=Week_16!B:B,"DNP")
=IFERROR(INDEX(Week_16!G:G,MATCH($A5,Week_16!B:B,0)),"DNP")

Week_16!G:G - is the data I want
$A5 is the player name I want to match
Week_16!B:B is the list of player names (This is the list with the duplicates)
The position of the players is in
Week_16!D:D (say "QB")
Screenshot 2024-01-25 at 2.38.15 PM.png

Does this better explain what I need?
Thank you again.

 
Upvote 0
My ignorance makes me nervous. Sorry.

I only want to return the name of the duplicate player that is a QB.
 
Upvote 0
In that case how about
Excel Formula:
=filter(Week_16!G:G,($A5=Week_16!B:B)*(Week_16!d:d="qb"),"DNP")
 
Upvote 0
Solution
Goodness... I would not have figured that out. Thank you for putting up with me.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,954
Members
449,095
Latest member
nmaske

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