问题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="质保内维护"))
=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="质保内维护"))
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="质保内维护"))
可以用COUNTIF函数