=SUMPRODUCT(--(WEEKNUM(Spring4!$N$2:$N$2000,1)='Weekly Plug
Tray'!$A4),--(Spring4!$P$2:$P$2000>0),(Spring4!$P$2:$P$2000))
The above formula is what I have and doesn't work. However, if I use the
formula below with a helper column it works:
=SUMPRODUCT(--(Spring4!$U$2:$U$2000='Weekly Plug
Tray'!$A5),--(Spring4!$P$2:$P$2000>0),(Spring4!$P$2:$P$2000))
My problem may be with the weeknum function rather than with the sumproduct.
any thoughts?
Thanks again.
Lee
> =sumproduct(--(weeknum(A1:A10,1)=othersheet!A1),--(C1:C10>0),(C1:C10))
>
[quoted text clipped - 32 lines]
>> >> the sumproduct to keep the workbook compatible with 2003 user.
>> >> Thanks,
daddylonglegs - 20 Apr 2008 00:48 GMT
A helper column would be the easiest way to go, I think, but if you really
wanted to avoid that......
You can replicate =WEEKNUM(A1,1) with
=INT((A1-DATE(YEAR(A1),1,1)-WEEKDAY(A1))/7)+2
so you could change your formula to:
=SUMPRODUCT(--(INT((Spring4!$N$2:$N$2000-DATE(YEAR(Spring4!$N$2:$N$2000),1,1)-WEEKDAY(Spring4!$N$2:$N$2000))/7)+2='Weekly
Plug Tray'!$A4),--(Spring4!$P$2:$P$2000>0),(Spring4!$P$2:$P$2000))
> =SUMPRODUCT(--(WEEKNUM(Spring4!$N$2:$N$2000,1)='Weekly Plug
> Tray'!$A4),--(Spring4!$P$2:$P$2000>0),(Spring4!$P$2:$P$2000))
[quoted text clipped - 46 lines]
> >> >> the sumproduct to keep the workbook compatible with 2003 user.
> >> >> Thanks,
The WEEKNUM function won't work on arrays.

Signature
Biff
Microsoft Excel MVP
> =sumproduct(--(weeknum(A1:A10,1)=othersheet!A1),--(C1:C10>0),(C1:C10))
>
[quoted text clipped - 32 lines]
>> >> the sumproduct to keep the workbook compatible with 2003 user.
>> >> Thanks,
Neophyte - 19 Apr 2008 14:19 GMT
Thanks for telling me. It will work with the helper column. How do you know
what will and won't work?
Lee
> The WEEKNUM function won't work on arrays.
>
[quoted text clipped - 34 lines]
>>> >> the sumproduct to keep the workbook compatible with 2003 user.
>>> >> Thanks,
T. Valko - 19 Apr 2008 19:29 GMT
>How do you know what will and won't work?
Experience combined with trial and error. I don't think I've ever read in
the Excel help files that such and such function(s) do not work with arrays.
So, it's trial and error.

Signature
Biff
Microsoft Excel MVP
> Thanks for telling me. It will work with the helper column. How do you
> know what will and won't work?
[quoted text clipped - 37 lines]
>>>> >> the sumproduct to keep the workbook compatible with 2003 user.
>>>> >> Thanks,
Barb Reinhardt - 20 Apr 2008 15:29 GMT
Thanks, I've learned something today. :)
Barb Reinhardt
> >How do you know what will and won't work?
>
[quoted text clipped - 43 lines]
> >>>> >> the sumproduct to keep the workbook compatible with 2003 user.
> >>>> >> Thanks,
Lee - 21 Apr 2008 16:18 GMT
Thanks to all for helping. I don't feel quite so ignorant knowing that all
functions do not get along. (Sounds like some programers built a little of
their persona into them.) Again, many thanks to all.
Lee
> >How do you know what will and won't work?
>
> Experience combined with trial and error. I don't think I've ever read in
> the Excel help files that such and such function(s) do not work with
> arrays. So, it's trial and error.