+ Reply to Thread
Results 1 to 3 of 3

get a rolling sum between current date - 30 days

  1. #1
    dustin
    Guest

    get a rolling sum between current date - 30 days

    thank you for the previous help in ths matter, but what im looking for is a
    formula to calculate the SUM between TODAYS CURRENT DATE and the 30 previous
    days. And each day the CURRENT DAY needs to change also adjusting the
    previous 30 and changing the SUM. For example each days i enter hours in the
    B column, the A column will have a date, well if today is august 3rd the
    rolling 30 days sum should equal todays hours plus everything in between the
    previous 30 days. If anyone has any ideas on this formula or anything similar
    to it it would really help.

  2. #2
    Bob Phillips
    Guest

    Re: get a rolling sum between current date - 30 days

    =SUM(INDEX(B:B,MATCH(TODAY(),A:A,0)):INDEX(B:B,MAX(1,MATCH(TODAY(),A:A,0)-30
    )))

    --
    HTH

    Bob Phillips

    (replace somewhere in email address with gmail if mailing direct)

    "dustin" <[email protected]> wrote in message
    news:[email protected]...
    > thank you for the previous help in ths matter, but what im looking for is

    a
    > formula to calculate the SUM between TODAYS CURRENT DATE and the 30

    previous
    > days. And each day the CURRENT DAY needs to change also adjusting the
    > previous 30 and changing the SUM. For example each days i enter hours in

    the
    > B column, the A column will have a date, well if today is august 3rd the
    > rolling 30 days sum should equal todays hours plus everything in between

    the
    > previous 30 days. If anyone has any ideas on this formula or anything

    similar
    > to it it would really help.




  3. #3
    MartinW
    Guest

    Re: get a rolling sum between current date - 30 days

    Hi Dustin,

    Do you mean your B column just keeps growing down the sheet
    one cell per day. If that is the case in cell C30 put

    =SUM(B1:B30) and copy it down a few hundred cells.
    As you copy it down the range will adjust automatically
    to just the previous 30 cells in column B.

    If you add the IF function like this
    =IF(B30="","",SUM(B1:B30))

    then column C will stay blank until an entry is
    placed in column B

    HTH
    Martin




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1