I'm trying to come up with a SUMPRODUCT or COUNTIF Equation with no luck
(syntax maybe???).
I'm trying to count the nonblank cells from D2:D5000 with the following
criteria.
Month in column M (M2:M5000)=5
Year in column M (M2:M5000)=2007
PCLIVE - 28 Mar 2008 17:22 GMT
=SUMPRODUCT(--(D2:D5000<>""),--(month(M2:M5000)=5),--(year(M2:M5000)=2007))
HTH,
Paul
> I'm trying to come up with a SUMPRODUCT or COUNTIF Equation with no luck
> (syntax maybe???).
[quoted text clipped - 4 lines]
> Month in column M (M2:M5000)=5
> Year in column M (M2:M5000)=2007
Pete_UK - 28 Mar 2008 17:23 GMT
Assuming you have dates in column M:
=SUMPRODUCT((D2:D5000<>"")*(MONTH(M2:M5000)=5)*(YEAR(M2:M5000)=2007))
Hope this helps.
Pete
> I'm trying to come up with a SUMPRODUCT or COUNTIF Equation with no luck
> (syntax maybe???).
[quoted text clipped - 4 lines]
> Month in column M (M2:M5000)=5
> Year in column M (M2:M5000)=2007
luisi - 28 Mar 2008 18:01 GMT
Perfect. Thanks guys, I orginally got most of it but I'm still shaky on
quotation marks and parathesis!
> Assuming you have dates in column M:
>
[quoted text clipped - 12 lines]
> > Month in column M (M2:M5000)=5
> > Year in column M (M2:M5000)=2007
Pete_UK - 28 Mar 2008 18:19 GMT
Thanks for feeding back , Luisi.
Put each condition in brackets, and either use the double-unary -- and
separate the terms with a comma, or use the asterisk between terms as
I have.
Pete
> Perfect. Thanks guys, I orginally got most of it but I'm still shaky on
> quotation marks and parathesis!
[quoted text clipped - 17 lines]
>
> - Show quoted text -
Gary''s Student - 28 Mar 2008 17:33 GMT
=SUMPRODUCT(--(MONTH(M2:M5000)=5),--(YEAR(M2:M5000)=2007),--(D2:D5000<>""))

Signature
Gary''s Student - gsnu200776
> I'm trying to come up with a SUMPRODUCT or COUNTIF Equation with no luck
> (syntax maybe???).
[quoted text clipped - 4 lines]
> Month in column M (M2:M5000)=5
> Year in column M (M2:M5000)=2007