用这个数组公式 {=IF(ISNA(MATCH(K3:W3,B3:H3,0)),K3:W3,"")}
见截图,Y列的公式也是数组公式, { =SUM(1*ISNA(MATCH(K3:W3,B3:H3,0))) }
aa3输入公式=IF(COUNTIF($A$3:A3,A3)>1,"",A3)确定后向后拖拉复制到aw列, 然后选中aa3:aw3再下拉复制。
AA1单元格输入公式后,按SHIFT+CTRL+ENTER结束
=INDEX($K3:$W3,SMALL(IF(COUNTIF($B3:$H3,$K3:$W3)=0,COLUMN($K3:$W3),256),COLUMN(A1))-10)
然后向右填充.如果要取消错误值显示,需要增加纠错
2003版
=IF(ISERROR(INDEX($K3:$W3,SMALL(IF(COUNTIF($B3:$H3,$K3:$W3)=0,COLUMN($K3:$W3),256),COLUMN(A1))-10)),"",INDEX($K3:$W3,SMALL(IF(COUNTIF($B3:$H3,$K3:$W3)=0,COLUMN($K3:$W3),256),COLUMN(A1))-10))
2007版
=IFERROR(INDEX($K3:$W3,SMALL(IF(COUNTIF($B3:$H3,$K3:$W3)=0,COLUMN($K3:$W3),256),COLUMN(A1))-10),"")
将下面的公式复制粘贴到AA3:
=IF(COLUMN(A1)<=SUM(IF(COUNTIF($K3:$W3,$B3:$H3)=0,1,)),SMALL(IF(COUNTIF($K3:$W3,$B3:$H3)=0,$B3:$H3,""),COLUMN(A1)),SMALL(IF(COUNTIF($B3:$H3,$K3:$W3)=0,$K3:$W3,""),COLUMN(A1)-SUM(IF(COUNTIF($K3:$W3,$B3:$H3)=0,1,))))
粘贴后,不要直接回车,按住ctrl和shift两键(不放)的同时,敲回车。之后,右拉。下拉。