It is in column 3, not 2 in your INDEX-range, so:
=IF(ISERROR(INDEX($A$1:$H$16,SMALL(IF($A$1:$A$16=$ J$1,ROW($A$1:$A$16)),ROW(1:1)),3)),"",INDEX($A$1:$ H$16,SMALL(IF($A$1:$A$16=$J$1,ROW($A$1:$A$16)),ROW (1:1)),3))
You can shorten the formula by about 50% by using IFERROR instead of IF(ISERROR(...
|