Enter the following formula in the target cell, and then fill the formula down.
=INDEX(A:A,MATCH(LARGE(B:B,ROW(A 1)),B:B,0))