Please check the below screenshot: The issue is that the Match() function does not recognize duplicated values. The H2 and J2 cells are not showing the desired result.
Well, not sure what you want exactly, but I use this to get the Top 5 and it deals with duplicates:
Formula in B1:
=LARGE(B$13:B$30,ROW())
Formula in A1:
=INDEX(A$13:A30,AGGREGATE(15,6,ROW($1:$30)/(B$13:B$30=B1),COUNTIF(B$1:B1,B1)))