B3:=INDEX(Sheet1!B:B,SMALL(IF(Sheet1!$A$3:$A$1000=$A3,ROW($3:$1000),4^8),ROW(1:1)))C3:=INDEX(Sheet1!E:E,SMALL(IF(Sheet1!$A$3:$A$1000=$A3,ROW($3:$1000),4^8),ROW(1:1)))以上公式均需用Ctrl+Shift+Enter完成数组公式,C3向右填充,再一起向下填充。