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

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
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
 
Upvote 0
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))
 
Upvote 0

Forum statistics

Threads
1,213,489
Messages
6,113,954
Members
448,535
Latest member
alrossman

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