sum the LAST 7 values in a column

iaf_22

New Member
Joined
Dec 13, 2005
Messages
1
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.

Thank for your help.
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
Joined
Oct 3, 2005
Messages
11
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
 

btadams

Well-known Member
Joined
Jan 6, 2003
Messages
1,942
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))
 
Master Excel Bundle

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.

Forum statistics

Threads
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.
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
Top