Try this
In a spare column (R in the attached)
In R1
=IF(ISNUMBER(MATCH(O1,$M$1:$M$9,0)),"",O1)
Drag/Fill Down
In P1 this array formula
=IF(ROW()-ROW($P$1:$P$1000)+1>ROWS($R$1:$R$1000)-COUNTBLANK($R$1:$R$1000),"",INDIRECT(ADDRESS(SMALL((IF($R$1:$R$1000<>"",ROW($R$1:$R$1000),ROW()+ROWS($R$1:$R$1000))),ROW()-ROW($P$1:$P$999)+1),COLUMN($R$1:$R$1000),4)))
Confirm with Ctrl+Shift+Enter not just Enter
Drag/Fill Down
This last formula removes the blanks from Column R (Helper Column can be hidden), you might not need it.
Hope this helps
Bookmarks