包含时间的求和
计数,求和 时明细里面包含了分秒,求的时候不用到分秒,整不会了,看不懂那里错了COUNTIFS(明细!$A:$A,"*"&汇总!$A4&"*",明细!$B:$B,"*"&$C$1&"*")
SUMIFS(明细!$C:$C,明细!$A:$A,"*"&汇总!$A4&"*",明细!$B:$B,"*"&$C$1&"*")
=MMULT(SUMIFS(明细!$C:$C,明细!$A:$A,"*"&汇总!$A4&"*",明细!$B:$B,">="&$C$1+{0,1}),{1;-1}) 用这两个函数不适合。 =SUMPRODUCT(ISNUMBER(FIND(A4,明细!A2:A6))*(C1=INT(明细!B2:B6)))
=SUMPRODUCT(ISNUMBER(FIND(A4,明细!A2:A6))*(C1=INT(明细!B2:B6)),明细!C2:C6) =SUMPRODUCT((ISNUMBER(FIND($A4,明细!$A$2:$A$6)))*(--TEXT(明细!$B$2:$B$6,"e-mm-dd")=$C$1))
=SUMPRODUCT((ISNUMBER(FIND($A4,明细!$A$2:$A$6)))*(--TEXT(明细!$B$2:$B$6,"e-mm-dd")=$C$1),明细!$C$2:$C$6)
页:
[1]