Hi All,

a possible alternative approach (for Excel 2010 or newer)


=IFERROR(INDEX(B$2:B$3270,AGGREGATE(15,6,ROW($A$2:$A$3270)-1/($A$2:$A$3270=J2),COUNTIF($J$2:J2,J2))),"")
no need to be confirmed with control+shift+enter

Regards