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

Some videos you may like

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

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,941
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))
 

Watch MrExcel Video

Forum statistics

Threads
1,123,235
Messages
5,600,468
Members
414,382
Latest member
kevinlarey

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