+ Reply to Thread
Results 1 to 3 of 3

dynamic range combined with rolling average

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Location
    The Netherlands
    MS-Off Ver
    Office for Mac 2016; MS Office 2016 for Windows
    Posts
    110

    dynamic range combined with rolling average

    Hi All,

    I have a file with 52 columns (1 column for each week) with quantities. I need to show the rolling average for the last 6 weeks in column A and the rolling average for the last 10 weeks in column B. The tricky part is how to automatically update this when we have a new week.

    See attached example file; the current week is week 11. Column A needs to be the average of week 5 up to week 10, column B needs to be the average of week 1 up to week 10.
    Next week, we are in week 12, so the value in Column A needs to be the average of week 6 up to week 11, column B needs to be the average of week 2 up to week 11 and so on.

    How to capture this in a formula?

    Thanks for all the help!
    rolling average.xlsx

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,719

    Re: dynamic range combined with rolling average

    =AVERAGE(OFFSET(E3,,COUNT(E3:ZZ3)-10,,10)) for 10 weeks

    =AVERAGE(OFFSET(E4,,COUNT(E4:ZZ4)-6,,6)) for 6 weeks

  3. #3
    Forum Contributor
    Join Date
    08-10-2006
    Location
    The Netherlands
    MS-Off Ver
    Office for Mac 2016; MS Office 2016 for Windows
    Posts
    110

    Re: dynamic range combined with rolling average

    aha, super!! many thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Dynamic Range combined with data validation
    By salami123 in forum Excel General
    Replies: 5
    Last Post: 03-11-2014, 08:49 AM
  2. Average formula for a rolling range?
    By roachiepie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-24-2014, 05:09 PM
  3. Dynamic Range average
    By rjhe22 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-12-2013, 03:42 PM
  4. Conditionally extending range of rolling average -- ??
    By burro in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2011, 06:01 AM

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