if there is a blank at the start this will cause problems (so ill start your range at B4)
in named ranges (ctrl+F3) enter this and call it "Range"
=Hoja1!$B$4:INDEX(Hoja1!$B$4:$B$1000,MAX(INDEX(Hoja1!$B$4:$B$1000<>"",,)*ROW(Hoja1!$B$4:$B$1000)))
then the formula to drag for a list will be this
=IFERROR(INDEX(Range,SMALL(IF(FREQUENCY((IFERROR(CODE(TRIM(Range)),0)>64)*(IFERROR(MATCH(Range,Range,0),0)),ROW(Range)-MIN(ROW(Range))+1)>0,ROW(Range)-MIN(ROW(Range))+1,""),ROW($A13))),"")
entered with Crtl+Shift+Enter
see attached sheet as to how it works.
Note there may be simpler ways but i worked this out before and it defiantly works
Book 1 Remove Dups.xlsx (your file).
Remove Duplicates Breakdown and Max with Index.xlsx (my explanation file)
Bookmarks