Sum data from last week to first week of year

gustavoavila

New Member
Joined
Feb 27, 2013
Messages
15
Hello folks,

I have a little problem. I'm trying to summarize all info from last week to the first week of year, like an annual accumulation.

I use this formula to summarize data from specific weeknum (last week), but I need to use something like a for or while function to define a range of weeknums (first week of year to last week according today() value)

Code:
=SUMPRODUCT(--(DialySummaryCL[Project]=[@Project]);--(DialySummaryCL[CL Weeknum]=WEEKNUM(TODAY())-1);DialySummaryCL[Recived])

Very appreciate your help
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Hi,

I don't think that you can use WEEKNUM in an array (I may be mistaken), so you may need to add a "Helper" column to get the weeknumber.

Does this work?...

Excel Workbook
ABCDE
1DateValuesWeeknumSum
201/01/20131001700
315/01/20131003
429/01/20131005
512/02/20131007
626/02/20131009
712/03/201310011
826/03/201310013
909/04/201310015
1023/04/201310017
1107/05/201310019
1221/05/201310021
1304/06/201310023
14
Sheet6


The formula in C2 needs to be copied down and the formula in D1 will need the cell references changed to suit your layout.

I hope that helps.

Ak
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,691
Members
448,978
Latest member
rrauni

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top