Count date field that occurs in a specific month
题
I need to count the occurrence of a specified month in my data, I used the following formula
=SUMPRODUCT((MONTH(E$2:E$9999)=2)*(YEAR(E$2:E$9999)=2011)*1)
The formula works, but XCelsius do not recognize the SUMPRODUCT function
This is my data sample
2011/02/14 08:54:21 AM
2011/02/18 11:08:57 AM
2011/02/21 10:40:55 AM
2011/04/13 09:48:46 AM
2011/04/14 09:03:58 AM
2011/05/25 06:20:29 AM
Is there another way of counting the occurrences of a specified month
解决方案
Maybe try this:
=COUNTIF(E$2:E$9999,">=2011-02-01")-COUNTIF(E$2:E$9999,">=2011-03-01")
不隶属于 StackOverflow