A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
To get them into adjacent cells, array-enter (enter using Ctrl-Shift-Enter)
=IFERROR(INDEX($56:$66,SMALL(IF($AD$5:$AD$15>0,ROW($AD$5:$AD$15)-4),ROW(A1)),MATCH(1,$68:$68,FALSE)),"")
and copy down. If you want o copy accross instead of down, change ROW(A1) to COLUMN(A1) and enter using Ctrl-Shift-Enter.