+ Reply to Thread
Results 1 to 3 of 3

Formula for Named Range to calculate Moving Average for charting

  1. #1
    Registered User
    Join Date
    09-20-2014
    Location
    ohio, us
    MS-Off Ver
    2010
    Posts
    1

    Formula for Named Range to calculate Moving Average for charting

    Hi!

    - I have my data in a column for which I need to plot a 20 period moving average line using named range (I need a named range since I am using a no. of charts on real time basis. I am currently using helper columns to calculate 20 period moving average data which is greatly slowing my charts down).

    - My oldest data point is at the bottom of the column and latest data is added at the top of the column.

    - For my charting requirements, I need to display the axis on the right side of the chart, so that I need to keep my data plotted from right to left on the chart.

    - In case I use the build-in Moving Average function of Excel, my moving average line starts at somewhere in the middle whereas it should start on the extreme right hand side of the chart. This is because, the built-in excel moving average functionality of Excel reads data points on the chart and the first point of the moving average line is plotted on the 20th data point on the chart.

    If was wondering whether there can be a formula to plot a 20 period moving average line using Named Ranges that reads data from just my original data column.

    Note: Sample excel sheet attached showing what should be an what I am getting
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-01-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    10

    Re: Formula for Named Range to calculate Moving Average for charting

    Not sure how to avoid a helper column. However, the following is a more efficient moving average formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Fill down B22 to B98.

  3. #3
    Registered User
    Join Date
    04-06-2012
    Location
    India
    MS-Off Ver
    Pro Plus 2019
    Posts
    86

    Re: Formula for Named Range to calculate Moving Average for charting

    No working solution given here so request also posted at http://www.ozgrid.com/forum/showthre...518#post727518

+ 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. Replies: 10
    Last Post: 06-28-2012, 08:59 AM
  2. How to calculate sum of a moving range and average it
    By a_driga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-27-2011, 02:17 AM
  3. Macro for moving average and charting
    By sramalin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-13-2011, 01:49 AM
  4. Charting the first 10 points in named range
    By controlfreak in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 06-19-2009, 07:50 AM
  5. Charting only Used Range with Named Ranges
    By cooter24 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 01-26-2006, 11:10 PM

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