=SUMPRODUCT((YEAR(A6:A100)=2009)*(B6:B100="u")*C6:C100)
Can anyone help? Would truly appreciate it!!!
Thank you
mePenny
"mePenny" <meP...@discussions.microsoft.com> wrote in message
news:15225413-3B76-4359...@microsoft.com...
What the message ought to say (if it doesn't lose the line feeds again) is:
--
David Biddulph
> --
> David Biddulph
--
David Biddulph
"David Biddulph" <groups [at] biddulph.org.uk> wrote in message
news:4b0bdb9d$1...@glkas0286.greenlnk.net...
"David Biddulph" wrote:
> .
>
=SUMPRODUCT(((YEAR(A6:A100)=2009)*(MONTH(A6:A100)>=7)+(YEAR(A6:A100)=2010)*(MONTH(A6:A100)<=6))*(B6:B100="u")*C6:C100)
effectively does (YEAR=2009 and MONTH>=7) or (YEAR=2010 and MONTH<=6)
=SUMPRODUCT((TEXT(A6:A100,"yyyymm")>="200907")*(TEXT(A6:A100,"yyyymm")<="201006")*(B6:B100="u")*C6:C100)
formats the date as yyyymm (so November 2009 would be 200911) and then looks
for values between 200907 and 201006.
--
David Biddulph
"mePenny" <meP...@discussions.microsoft.com> wrote in message
news:8C8AD4D8-6071-4E8B...@microsoft.com...
=SUMPRODUCT((X1<=A6:A100)*(A6:A100<=X2)*(B6:B100="u"), C6:C100)
where X1 is presumed to have the date 7/1/09, and X2 has the date 6/30/10.
Alternatively, you can replace X1 and X2 with DATE(2009,7,1) and
DATE(2010,6,30) respectively in the formula.
----- original message -----
"mePenny" <meP...@discussions.microsoft.com> wrote in message
news:15225413-3B76-4359...@microsoft.com...
Penny
"David Biddulph" wrote:
> .
>