F2单元格输入公式——右拉。F3单元格输入公式——右拉——下拉。——————————————————————————=IF(COLUMN(A:A)>SUM(1/COUNTIF($B$3:$B$9,$B$3:$B$9)),"",INDEX($B:$B,SMALL(IF(COUNTIF(OFFSET($B$3,,,ROW($B$3:$B$9)-2),$B$3:$B$9)=1,ROW($B$3:$B$9)),COLUMN(A:A))))=IF(ROW(1:1)>COUNTIF($B$3:$B$9,F$2),"",OFFSET($C$2,SMALL(IF(F$2=$B$3:$B$9,ROW($B$3:$B$9)),ROW(1:1))-2,))