+ Reply to Thread
Results 1 to 4 of 4

Moving Average for given N Number

  1. #1
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Moving Average for given N Number

    Hello Friends

    Please find the attached excel 2010 version file <Moving Average for given N Number.xlsx>

    I want to calculate the moving average for the given (Last) `N' numbers. The green cells are inputs and based on the value in green cells the yellow cells has to be populated by formula.

    I can use the formula in Cell C5 <=AVERAGE(A3:A5)> and in Cell E7 <=AVERAGE(A3:A7)> (can drag upto C18 & E18), but the problem is if i want to change the moving average from 3 & 5 to some other number means again i have to apply formula and repopuilate the values.

    thanks in advance


    thilag
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Moving Average for given N Number

    Hi,

    In C5:

    =AVERAGE(A3:INDEX(A:A,1+$C$1+ROWS($1:1)))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Contributor
    Join Date
    10-19-2012
    Location
    chennai
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Moving Average for given N Number

    HI Try with this =AVERAGE(INDIRECT(ADDRESS(C1,1)&":"&ADDRESS(E1,1))) also.

  4. #4
    Forum Contributor
    Join Date
    02-25-2012
    Location
    Coimbatore, India
    MS-Off Ver
    Excel 2010
    Posts
    445

    Re: Moving Average for given N Number

    Hello XOR LX & Hello rajansettu

    Thank you for your quick reply.

    thanks again

    thilag

+ 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: 15
    Last Post: 05-26-2016, 11:52 PM
  2. [SOLVED] Moving average/average function/adjustable length
    By Lv27 in forum Excel General
    Replies: 3
    Last Post: 08-16-2012, 09:43 AM
  3. [SOLVED] Determining if a number is above or below a average and moving data based on that
    By OcMac in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-24-2012, 08:36 PM
  4. Charts 5 day moving average, 10 day moving average
    By monalisa in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2008, 09:50 PM
  5. Moving average of a moving average in the same cell
    By philroberts1983 in forum Excel General
    Replies: 8
    Last Post: 09-16-2008, 07:36 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