G Guest Aug 30, 2007 #1 In Excel I'm trying to count the number of times a given month occurs in a column of values of the type date.
In Excel I'm trying to count the number of times a given month occurs in a column of values of the type date.
P Peo Sjoblom Aug 30, 2007 #2 =SUMPRODUCT(--(ISNUMBER(A2:A500)),--(MONTH(A2:A500)=2)) would count February =SUMPRODUCT(--(ISNUMBER(A2:A500)),--(YEAR(A2:A500)=2007),--(MONTH(A2:A500)=2)) would count February 2007
=SUMPRODUCT(--(ISNUMBER(A2:A500)),--(MONTH(A2:A500)=2)) would count February =SUMPRODUCT(--(ISNUMBER(A2:A500)),--(YEAR(A2:A500)=2007),--(MONTH(A2:A500)=2)) would count February 2007