ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Sumproduct question (https://www.excelbanter.com/excel-worksheet-functions/109005-sumproduct-question.html)

Barb Reinhardt

Sumproduct question
 
I have the following sumproduct formula that isn't working. Can someone help
me to fix it? It's the weeknum part that I can't get to work.


=SUMPRODUCT(--(IF(WEEKNUM('Raw Data'!$M$2:$M$533,2)=WEEKNUM(N2,2),'Raw
Data'!$M$2:$M$533)),('Raw Data'!$K$2:$K$533))

Thanks,

Biff

Sumproduct question
 
Hi!

Weeknum won't work on arrays.

This looks like what you're trying to do:

=SUMPRODUCT(--(INT((WEEKDAY(DATE(YEAR(M2:M533),1,2-2))+M2:M533-DATE(YEAR(M2:M533),1,-5))/7)=WEEKNUM(N2,2)),--(M2:M533<""),K2:K533)

Biff

"Barb Reinhardt" wrote in message
...
I have the following sumproduct formula that isn't working. Can someone
help
me to fix it? It's the weeknum part that I can't get to work.


=SUMPRODUCT(--(IF(WEEKNUM('Raw Data'!$M$2:$M$533,2)=WEEKNUM(N2,2),'Raw
Data'!$M$2:$M$533)),('Raw Data'!$K$2:$K$533))

Thanks,





All times are GMT +1. The time now is 02:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com