Your data "A1" to "A166"
In "B1"
Formula: copy to clipboard
=IFERROR(INDEX($A$1:$A$166,SMALL(INDEX(NOT(ISBLANK($A$1:$A$166))*ROW($A$1:$A$166),0),COUNTBLANK($A$1:$A$166)+ROW(A1))),"")

ensure pressing shift+ctrl+enter
copy paste down till blank.