Issue with Index Match

Jasesair

Active Member
Joined
Apr 8, 2015
Messages
282
Office Version
  1. 2016
I have the below formula which is returning a name (Column B) after matching a Date of Birth in Column C. The index-match formula is copied down a large table. It all works perfectly until there are twins with the same DOB. Any idea how to resolve?

=IFERROR(INDEX($B$6:$B$203,MATCH(AT6,$C$6:$C$203,0)),"")
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Another option (dragged down)

=IFERROR(INDEX($B$6:$B$203, SMALL(IF(($AT$6=$C$6:$C$203), MATCH(ROW($C$6:$C$203), ROW($C$6:$C$203)), ""),ROWS($A$1:A1))),"")
 
Upvote 0
I might need a complete rethink because your formula isn't returning anything at all unfortunately.
 
Upvote 0
See if this works. I assume as you drag your formula down AT6 goes to AT7 etc.

=IFERROR(INDEX($B$6:$B$203,AGGREGATE(15,6,(ROW($B$6:$B$203)-ROW($B$6)+1)/(AT6=$C$6:$C203),COUNTIF($C$6:C6,C6))),"")
 
Upvote 0
That works perfectly. It just doesn't address the original issue of a duplicate (twins with the same DOB).
 
Upvote 0

Forum statistics

Threads
1,215,176
Messages
6,123,464
Members
449,100
Latest member
sktz

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