How would I track a rolling set of 30 cells?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to have a cell show me a sum for the past 30 days, updated daily.
The group of the 30 cells I'm summing will need to adjust down one cell
daily.
 
One way:

Assume headings in row 1, then data in rows 2:xx, one row per day, date
in column A, numeric data in column B:

=SUM(OFFSET(B2,MAX(0, COUNTA(B:B)-31), 0, 30,1))
 
Hi CJ

Another way assuming your data is in A1 to A30
then in B30

=IF(A30="","",SUM(A1:A30))
and drag it down as far as you need. The cell references
will update as you drag drown.
i.e. B31 will show =IF(A31="","",SUM(A2:A31)) etc.

The B column will stay blank until you put a value into A

HTH
Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top