Please see the image which will show my data and expected output.
Use this formula in C2 cell: It is a array formula, so press Ctrl
+ Shift
+ Enter
after entering formula.
=IFERROR(INDEX($A$2:$A$15,SMALL(IF($A$2:$A$15<>"",ROW($A$2:$A$15)),ROWS($A$2:$A2))-1),"")