try this, copied down...

=IFERROR(INDEX(OFFSET(INDEX($B$2:$B$180,MATCH($O$2,$A$2:$A$180,0)),,,COUNTIF($A$2:$A$180,$O$2),),ROW(A1)),"")