按日期区间求和与计数
按日期区间求和与计数 请见附件先行谢过, 谢谢!
AO3=SUMPRODUCT(($A$2:$A$2545=$AP$1)*(CLEAN($I$2:$I$2545)="进")*(--LEFT($F$2:$F$2545,10)>=$AR$1)*(--LEFT($F$2:$F$2545,10)<=$AT$1))
AP3=SUMPRODUCT(($A$2:$A$2545=$AP$1)*(CLEAN($I$2:$I$2545)="进")*(--LEFT($F$2:$F$2545,10)>=$AR$1)*(--LEFT($F$2:$F$2545,10)<=$AT$1)*$AM$2:$AM$2545)
AQ3=SUMPRODUCT(($A$2:$A$2545=$AP$1)*(CLEAN($I$2:$I$2545)="出")*(--LEFT($F$2:$F$2545,10)>=$AR$1)*(--LEFT($F$2:$F$2545,10)<=$AT$1))
AR3=SUMPRODUCT(($A$2:$A$2545=$AP$1)*(CLEAN($I$2:$I$2545)="出")*(--LEFT($F$2:$F$2545,10)>=$AR$1)*(--LEFT($F$2:$F$2545,10)<=$AT$1)*$AM$2:$AM$2545) 其它类似。
=COUNTIFS(A:A,AP1&"",I:I,"进*",AK:AK,">="&AR1,AK:AK,"<="&AT1,AM:AM,"<>0") 非常感谢!谢谢!谢谢!
页:
[1]