用COUNTIF进行重复数统计。公式设计如图:
在M1输入公式:
=SUM(N(A1:F1=TRANSPOSE(G1:L1)))
数组公式,公式在编辑状态下按Ctrl+Shift+Enter(三键同时按)结束公式输入。
在M1输入如下函数。
=LEN(IF(COUNTIF($G1:$L1,A1)>0,"A","")&IF(COUNTIF($G1:$L1,B1)>0,"A","")&IF(COUNTIF($G1:$L1,C1)>0,"A","")&IF(COUNTIF($G1:$L1,D1)>0,"A","")&IF(COUNTIF($G1:$L1,E1)>0,"A","")&IF(COUNTIF($G1:$L1,F1)>0,"A",""))
M1=SUM(COUNTIF(A1:F1,G1:L1))
数组公式,输入完公式后光标留在最后,然后同时按Ctrl,Shift和Enter键