+ Reply to Thread
Results 1 to 9 of 9

Formula for a Rolling 12 month Average

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-11-2008
    MS-Off Ver
    2003
    Posts
    220

    Formula for a Rolling 12 month Average

    See Attached.

    The YTD 10 column is fine that will change everytime you update each month. I was wondering if there was a formula I could use for the Rolling 12 month Column.

    At the moment it is averging from Mar 09-Feb10 which is correct but when it comes to putting in data for Mar 10, the Rolling 12 month column will obviously not change.

    Is there a way of moving the formula along one each time you input data into a new month. So when Mar 10 has been entered the rolling 12 month column will pick up Apr-09-Mar-10 then when Apr 10 has been entered the formula will change again to May-09-APr-10?

    Many Thanks....
    Attached Files Attached Files

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Formula for a Rolling 12 month Average

    Hi,

    In AC37

    =AVERAGE(OFFSET(D37,0,MATCH(-1,D37:AA37,-1)-1,1,-12))
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Forum Contributor
    Join Date
    06-11-2008
    MS-Off Ver
    2003
    Posts
    220

    Re: Formula for a Rolling 12 month Average

    Thanks very much for your help, this is working perfectly. If I wanted to add another column at the end called current month, would there be a similar formula where it would just show that current months data, then when you enter the next months data it would then show that data in the current month column.

    Many thanks for your help!

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454

    Re: Formula for a Rolling 12 month Average

    like this?

    =OFFSET(D37,0,MATCH(-1,D37:AA37,-1)-1)

  5. #5
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Formula for a Rolling 12 month Average

    I can't get this to work for me. I have columns AC - AN containing 12 months of data. column AO has the 12 month average. I wish to insert a column at AO each month which would move the average to column AP so that I have the average of the most recent 12 months. However, the formula is not updating and is still averaging AC-AN when I need it to average AD-AO. Can anyone help?

  6. #6
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: Formula for a Rolling 12 month Average

    I just realised that if I insert all blank columns and then hide them (as per original attachment) the formula works beautifully. I am concerned, however, that this will be prone to user error. Does anyone know how to modify the formula so that the moving average calc would be fixed in the first column (e.g. column C on the original attachment) and the calc would return the last 12 populated columns?

  7. #7
    Registered User
    Join Date
    03-04-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    1

    Re: Formula for a Rolling 12 month Average

    New to the forum and I think I am trying to so similar. I want to show columns with 13 months of data with a total for Current YTD and 12 Month Total. I will have an actual row showing my 12 mo. moving average for the particular stat for that month. Somewhere in the spreadsheet is a driver key so if I type "7" it would recognize I am in July of the current year and therefore need Jan-July for YTD and Aug - July for 12mo. Additionally, this number would tell everything to shift over one column and make room for a new month's data. Years ago I had this type of worksheet and now I am needing it again. Has anyone seen this worksheet out there so I'm not starting from scratch?

  8. #8
    Registered User
    Join Date
    05-04-2018
    Location
    USA
    MS-Off Ver
    2013
    Posts
    2

    Re: Formula for a Rolling 12 month Average

    I have a 12 month rolling sum for a budget. However, some of the budget has negative values resulting in the formula as a #N/A. Does anyone know how to resolve this issue?Untitled.png
    Last edited by jes2539; 05-04-2018 at 06:09 PM.

  9. #9
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,946

    Re: Formula for a Rolling 12 month Average

    jes2539,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ 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