怎么统计对应人名的工作天数
各位大侠。现在一个表格有很多数据,A列是产品编号,B列是人名,C列是产品的生产日期,我想统计一下B列人名的工作天数,应该用什么公式啊?谢谢=SUMPRODUCT(1/COUNTIFS(B$2:B$30,B$2:B$30,C$2:C$30,C$2:C$30)*(B$2:B$30=G2)) =COUNT(0/FREQUENCY(($B$2:$B$30=G2)*($C$2:$C$30),($B$2:$B$30=G2)*($C$2:$C$30)))-1 =SUMPRODUCT(($B$2:$B$30=G2)/COUNTIFS($B$2:$B$30,$B$2:$B$30,$C$2:$C$30,$C$2:$C$30)) =COUNT(0/(MATCH(G2&$C$2:$C$30,$B$2:$B$30&$C$2:$C$30,)=ROW($1:$29))) 动态区域。
数组公式:=COUNT(0/(MATCH(G2&OFFSET(C$2,,,COUNTA(B:B)-1),B:B&C:C,)=ROW(OFFSET(C$2,,,COUNTA(B:B)-1)))) =SUMPRODUCT(($B$2:$B$30=G2)*(MATCH($B$2:$B$30&$C$2:$C$30,$B$2:$B$30&$C$2:$C$30,)=ROW($1:$29))) =SUM(($B$2:$B$30=G2)/COUNTIFS($C$2:$C$30,$C$2:$C$30,$B$2:$B$30,$B$2:$B$30))
数组下拉 非数字,应该不能用frequency 谢谢你,刚刚试了一下没有问题