+ Reply to Thread
Results 1 to 7 of 7

moving average

  1. #1
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    moving average

    Hello All,
    I am tracking kilometres driven per month, I want to see the average for the year at the end of each month.
    I can get the average with the help of helper cells. See attached. However with this method you have to keep adjusting the cell reference to accommodate the new months as the data is added.
    Is it possible to write this into one cell, without adjusting it as data is added through the year
    Thanks
    Kevin
    Attached Files Attached Files

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: moving average

    Is this of any use to you?

    AVERAGEIF is your friend here. I've also slightly amended the formulas in S5:AD5

    BSB
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: moving average

    BSB,

    Many thanks for your help, is it possible to do away with the helper cells?

    Thanks
    Kevin

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: moving average

    Try the below in cell Q5
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: moving average

    Another way...

    =AVERAGE(IF(D5:O5="","",D5:O5-C5:N5))

    Enter with Ctrl+Shift+Enter

  6. #6
    Forum Contributor
    Join Date
    05-30-2015
    Location
    Dubai
    MS-Off Ver
    Excel 2016 Mac & PC & 365
    Posts
    633

    Re: moving average

    Thank you BSB & Phuocam very helpful!

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: moving average

    You are welcome!

+ 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: 1
    Last Post: 10-20-2014, 03:20 PM
  2. [SOLVED] Moving average
    By burdo77 in forum Excel General
    Replies: 7
    Last Post: 10-01-2014, 10:53 AM
  3. [SOLVED] Moving average/average function/adjustable length
    By Lv27 in forum Excel General
    Replies: 3
    Last Post: 08-16-2012, 09:43 AM
  4. Moving average
    By bobdobalina in forum Excel General
    Replies: 8
    Last Post: 11-16-2009, 11:09 PM
  5. 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
  6. 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
  7. [SOLVED] Moving Average
    By Bgreer5050 in forum Excel General
    Replies: 3
    Last Post: 06-30-2005, 10:05 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