+ Reply to Thread
Results 1 to 3 of 3

How to calculate a rolling average over X periods

  1. #1
    Registered User
    Join Date
    03-02-2013
    Location
    Hartford, Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    2

    How to calculate a rolling average over X periods

    Hello,

    I am new to this forum and had an excel question I am hoping someone can help with. I have one column of data, and in the adjacent column I want to calculate a rolling X-period average from starting X periods back from the cell value. I would then like to define X in a single cell, so that I in one cell I could change X to 3 to get a 3 period average, or change X to 5 to get a 5 period average.

    I attached an example spreadsheet of what I am trying to do, if anyone can help it would be much appreciated!!
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: How to calculate a rolling average over X periods

    Using your posted workbook....
    with
    C2: number of cells to average...5

    This regular formula returns the average of the last C2 cells
    Please Login or Register  to view this content.
    In the above example, the formula returns: 4.4
    (the average of A12:A16)

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    03-02-2013
    Location
    Hartford, Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How to calculate a rolling average over X periods

    That's perfect, thanks so much!

    -Justin

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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