去重统计个数
用函数得到下面图片中的个数=COUNTA(UNIQUE(FILTER(B$2:B$39,$A$2:$A$39=$E3))) 三键,横拉,下拉
=SUMPRODUCT(1/COUNTIFS($A$2:$A$39,$A$2:$A$39,B$2:B$39,B$2:B$39)*($A$2:$A$39=$E3)) =COUNT(0/(MATCH(B$2:B$39,IF($A$2:$A$39=$E3,B$2:B$39),)=ROW($1:$38)))
数组公式, 公式不对,不存在的怎么还返回1 F3
=IFERROR(ROWS(UNIQUE(FILTER(B$2:B$39,$A$2:$A$39=$E3))),"") =SUM(($A$2:$A$39=$E3)/COUNTIFS($A:$A,$A$2:$A$39,B:B,B$2:B$39)) 厉害,感谢 =COUNT(0/IF(MATCH($E3&B$2:B$39,$A$2:$A$39&B$2:B$39,0)=ROW($B$1:$B$38),ROW($B$1:$B$38)))