Use either of:
(1) =SUMPRODUCT((DAY(A1:A100)=1)+0)
(2) =SUM((DAY(A1:A100)=1)+0) [ This one must be array-entered; That is, you need to hit CONTROL+SHIFT+ENTER at the same time (instead of just ENTER) to enter it. ]
Aladin
How about (assuming the first date is in A1 and the second date is in B1):
=(YEAR(B1)-YEAR(A1))*12+IF(DAY(A1)=1,(MONTH(B1)-MONTH(A1))+1,(MONTH(B1)-MONTH(A1)))
Regards,
Barrie
(1a) =SUMPRODUCT((A1:A100>=B1)*(A1:A100<=B2)*(DAY(A1:A100)=1))
if interested in the number of day 1's between 2 dates, the smaller in B1 and the larger in B2
(2a) Modify along the lines of 1a.
I reckon yours is the answer. Mine tackles with something related but different (a case of too fast reading).
Aladin :(