方法1,使用textjionL4单元格:=TEXTJOIN(" ",TRUE,IF(COUNTIF(A1:J3,A4:J4)>=1,A4:J4,"")),并向下填充;L4单元格修改为:=TEXTJOIN(" ",TRUE,IF(COUNTIF(A$1:J3,A4:J4)>=1,A4:J4,"")),并向上填充至L2。TEXTJOIN为数组函数,需要三键“Shift+Ctrl+Enter”。方法2、countifL4单元格:=IF(COUNTIF($A1:$J3,A4)>0,A4,""),并向下向右填充;L4单元格修改为:= IF(COUNTIF($A$1:$J3,A4)>0,A4,""),并向上向右填充至L2。