sum the LAST 7 values in a column

iaf_22

New Member
Hi all,
in colum A i ve inserted dates. Every day i will add a value in column B in the specific line of today's date. And i need excel to sum the values of the last 7 days.
How can i do that ??

the main goal is to use excel to count if i exceed my allowed duty time per 7 day consecutive days.

ps : i am a beginner in Excel...i just know the very very basic operation for now...

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

RhettRobb

New Member
I don't know if this is the best solution, but you could try this.

If your numbers are in B1 through B16, and your summation is in cell B17 use this formula:
=SUM(OFFSET(B17,-1,0):OFFSET(B17,-7,0))

As you add days, just make sure you copy down this formula first then overwrite yesterday's formula with today's hours

HTH
Rhett

Well-known Member
here's a formula that sums the last 7 cells in column A:

=SUM(OFFSET(A1,MATCH(1E+306,A:A)-7,0):OFFSET(A1,MATCH(1E+306,A:A),0))

MrExcel MVP
=SUM(OFFSET(A2,(MATCH(9.99999999999999E+307,A:A)-ROW(A2)+1)-7,,7))

Replies
5
Views
171
Replies
12
Views
558
Replies
2
Views
237
Replies
3
Views
458
Replies
1
Views
202

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,163,987
Messages
5,834,722
Members
430,313
Latest member
smartykatwinks

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.

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

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