f3输入数组公式(输入时按ctrl+shift+enter)
=INDEX(A:A,SMALL(IF($A$2:$A$19=$G$1,ROW($2:$19),200),ROW(A1)))&""
向右向下填充