Try in A5 and copy down

=IF(ISNUMBER(LEFT(B4)+0),B4,"")