+ Reply to Thread
Results 1 to 4 of 4

Moving average on dynamic named range without helper column

  1. #1
    Registered User
    Join Date
    03-07-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    5

    Moving average on dynamic named range without helper column

    Hello all,

    I would like to make a dynamic moving average on the column of data that has no fixed length. I would like the moving average to be plotted on the chart so the change of moving average parameter is visible instantly.

    I have to stick to .xlsx extension, so I cannot use VBA or macros.
    Length of the data column is changing so in case of using a helper column it should (probably) be expanded to the whole length of the column (to incorporate the "worst-case" scenario). That significantly adds to the file size and slows down the process even for a very short raw data column. So, no helper column.

    I managed to get to the following formula (rawdata is dynamic named range for the data column, $C$4 holds the parameter)

    Please Login or Register  to view this content.
    It seems to work when entered as array formula. When I try to define it as a new named range to put in on the chart it fails (see the attached workbook).
    I use Excel 2010.

    Any idea is greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Moving average on dynamic named range without helper column

    Hi
    Try this regular formula from D3
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    03-07-2016
    Location
    London
    MS-Off Ver
    2010
    Posts
    5

    Re: Moving average on dynamic named range without helper column

    Hi José,

    thanks for the response. Your solution works (the second equal sign is too much, though), but it produces a scalar, not a range. If I define new named range with your formula and try to chart it I get just one point. Do you know how to adapt your formula to produce the whole range?
    Thanks!

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Moving average on dynamic named range without helper column

    Hi
    I have a array formula that produce a array with the correct values (see in file the range O1:O17)
    and I set the range name MovAverage but could not pass it to the chart. See if this interests you.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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] Without Helper Column to Calculate Average Year
    By jackson_hollon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-15-2016, 12:34 AM
  2. Create new column with named dynamic range in VBA
    By BianchiBoy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2014, 06:31 AM
  3. Formula for Named Range to calculate Moving Average for charting
    By rachel_s in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-26-2014, 03:12 PM
  4. Dynamic named range for columns...moving one column over
    By amartino44 in forum Excel General
    Replies: 7
    Last Post: 09-13-2013, 02:31 AM
  5. Dynamic named range for a column
    By amartino44 in forum Excel General
    Replies: 10
    Last Post: 08-28-2013, 04:49 PM
  6. [SOLVED] Dynamic Named Range Help - Range Based on Values in Column
    By Filibuster in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-03-2012, 11:13 AM
  7. Dynamic Named Range - Moving
    By jamesryan in forum Excel General
    Replies: 3
    Last Post: 05-01-2008, 08:53 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