+ Reply to Thread
Results 1 to 4 of 4

Rolling average

  1. #1
    Registered User
    Join Date
    10-03-2011
    Location
    maryland, usa
    MS-Off Ver
    Excel 2007
    Posts
    1

    Rolling average

    I'm trying to calculate a 3 month average for a set of data but when I type in =average(d2:d4) and drag it down, the next box displays d3:d5 when i need it to take the average of d5:d7. Is there a way I could tweak the formula to do this for me? thanks in advance

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: 3 month rolling average?

    How does it become "rolling average" when you don't want it rolling? You have stated that you would like to average D2:D4 and then D5:D7. This is not rolling average.

  3. #3
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: 3 month rolling average?

    You could try =AVERAGE(INDIRECT("D" & (ROW()-1)*3+2 & ":D" & (ROW()-1)*3+4))

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: 3 month rolling average?

    Try:

    =AVERAGE(INDEX($D$2:$D$100,1+((ROW(A1)-1)*3)):INDEX($D$2:$D$100,3+((ROW(A1)-1)*3)))

    adjust ranges to suit, and copy down.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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