I found this formula on this site to count the number of closed items between two dates.
http://chandoo.org/forums/topic/hot-to-count-records-between-2-dates-and-a-condition
=+SUMPRODUCT(1*(A2:A11>=E3)*(A2:A11<=E1)*(C2:C11="Closed"))
It does not work for me.
I have successfully counted items between two dates using:
=SUMPRODUCT(('2011'!$B$2:$B$10000>=$A101)*('2011'!$B$2:$B$10000<$A102))
Where b2:b10000 is a list of dates
A101-a113 are the starting dates of months 01/01/2011, 02/01/2011...upto 01/01/2012
Now I want to count the number of Closed items between two dates. So, I modified my formula to read:
=SUMPRODUCT(('2011'!$B$2:$B$10000>=A101)*('2011'!$B$2:$B$10000<A102)*('2011'!$C$2:$C$10000="Closed"))
This is based on the example I found on this site and the result is 0. Even though I know otherwise
Then I tried....
=SUMPRODUCT(('2011'!$B$2:$B$10000>=A102)*('2011'!$B$2:$B$10000<A103)*(--(ISNUMBER(SEARCH("Closed",'2011'!$C$2:$C$10000)))))
Which is based on another formula in which I counted rows based on many criteria.
Neither of these formulas will count the rows which fall between two dates and have the status of Closed.
What am I doing wrong? Any help would be appreciated.
http://chandoo.org/forums/topic/hot-to-count-records-between-2-dates-and-a-condition
=+SUMPRODUCT(1*(A2:A11>=E3)*(A2:A11<=E1)*(C2:C11="Closed"))
It does not work for me.
I have successfully counted items between two dates using:
=SUMPRODUCT(('2011'!$B$2:$B$10000>=$A101)*('2011'!$B$2:$B$10000<$A102))
Where b2:b10000 is a list of dates
A101-a113 are the starting dates of months 01/01/2011, 02/01/2011...upto 01/01/2012
Now I want to count the number of Closed items between two dates. So, I modified my formula to read:
=SUMPRODUCT(('2011'!$B$2:$B$10000>=A101)*('2011'!$B$2:$B$10000<A102)*('2011'!$C$2:$C$10000="Closed"))
This is based on the example I found on this site and the result is 0. Even though I know otherwise
Then I tried....
=SUMPRODUCT(('2011'!$B$2:$B$10000>=A102)*('2011'!$B$2:$B$10000<A103)*(--(ISNUMBER(SEARCH("Closed",'2011'!$C$2:$C$10000)))))
Which is based on another formula in which I counted rows based on many criteria.
Neither of these formulas will count the rows which fall between two dates and have the status of Closed.
What am I doing wrong? Any help would be appreciated.