# SUM by week

#### Skybluekid

##### Well-known Member
Hi All,

I have a sheet that has data as follows

Week 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17

Data 60 62 52 42 42 78 75 79 80 50 61 66 72 79 23 8 8

What I need is to sum the range according to the week number. For example, If it is week 14, I would like to sum the range upto an including that week. But I would like to be done automatic so that when the week changes the sum range will automatically update to that week.

### Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Skybluekid,

Perhaps something like this....

Excel 2007
ABCDEFGHIJKLMNOPQ
1SUM921
2
31234567891011121314151617
460625242427875798050616672792388
Sheet1
Cell Formulas
RangeFormula
B1=SUMIF(\$A\$3:\$AZ\$3,"<="&WEEKNUM(TODAY()),\$A\$4:\$AZ\$4)

Alter the ranges to suit. If your week numbers are not strickly in line with the weeks of the year then you can add a + or - adjustment to the formula.

Hope that helps.

Hi,

Does this work?....

Excel Workbook
ABCDEFGHIJKLMNOPQRS
1Week1234567891011121314151617
2Data60625242427875798050616672792388
3
4
5Week14
6Result898
7
Sheet3

I hope that helps.

Ak

Thanks, it works a treat. The coventry boys do it again!

Replies
4
Views
361
Replies
3
Views
221
Replies
1
Views
310
Replies
3
Views
303
Replies
4
Views
955

1,211,686
Messages
6,103,297
Members
447,853
Latest member
olddutch7

### 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?

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