genracela
05-03-2010, 11:40 PM
My formula is:
=IF(A3="ALL",SUMIFS(D8:D65000,C8:C65000,B3,K8:K65000,WEEKNUM(C3)),SUMIFS(D8:D65000,A8:A 65000,A3,C8:C65000,B3,K8:K65000,WEEKNUM(C3)))
I'm trying to come up with an answer based on weeknum, but with a condition that:
When C3 is less less than the dates in K8:K6500, it will only return the sum of those dates.
Example in the attached file:
C3 is 5-Jan-10, if you look at the filtered data below 05-Jan-10 only show 111,021, I want to return this numner in D3 instead of 634,560. However, if C3 is 6-Jan-10, D3 should show 220,159, which is the sum of G164+G181.
Please help:help
Thanks in advance!
=IF(A3="ALL",SUMIFS(D8:D65000,C8:C65000,B3,K8:K65000,WEEKNUM(C3)),SUMIFS(D8:D65000,A8:A 65000,A3,C8:C65000,B3,K8:K65000,WEEKNUM(C3)))
I'm trying to come up with an answer based on weeknum, but with a condition that:
When C3 is less less than the dates in K8:K6500, it will only return the sum of those dates.
Example in the attached file:
C3 is 5-Jan-10, if you look at the filtered data below 05-Jan-10 only show 111,021, I want to return this numner in D3 instead of 634,560. However, if C3 is 6-Jan-10, D3 should show 220,159, which is the sum of G164+G181.
Please help:help
Thanks in advance!