如何统计excel某个时间段内,单元格数目

2024-10-31 19:58:26
推荐回答(4个)
回答1:

问题1:
=sumproduct((a2:a1000>=--"2012-1-1")*(a2:a1000<=--"2012-3-5"))
问题2:
=sumproduct((a2:a1000>=--"2012-1-1")*(a2:a1000<=--"2012-3-5")*(c2:c1000="质保内维护"))

回答2:

=SUMPRODUCT((Sheet1!A1:A10000>=DATEVALUE("2011/1/1"))*(Sheet1!A1:A10000<=DATEVALUE("2012/3/5")))

=SUMPRODUCT((Sheet1!A1:A10000>=DATEVALUE("2011/1/1"))*(Sheet1!A1:A10000<=DATEVALUE("2012/3/5"))*(C1:C10000="质保内维护"))

回答3:

1
=SUMPRODUCT((Sheet1!A:A>="2011/1/1")*(Sheet1!A:A<="2012/3/5"))
2
=SUMPRODUCT((Sheet1!A:A>="2011/1/1")*(Sheet1!A:A<="2012/3/5")*(Sheet1!C:C="质保内维护"))

回答4:

可以用COUNTIF函数