+ Reply to Thread
Results 1 to 2 of 2

Average formula for a rolling range?

  1. #1
    Registered User
    Join Date
    11-08-2011
    Location
    Las Vegas
    MS-Off Ver
    Excel 2010
    Posts
    7

    Average formula for a rolling range?

    Hello,

    I am trying to create a formula that looks for the last populated cell, counts 12 cells back and returns an average for all of the cells in that range. I know I have done this before with some combination of INDEX and COUNT, but I can't seem to remember how I did it and my experimenting is not proving fruitful.

    Attached is a simplified version of the layout I am working with

    Any help is much appreciated.

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Average formula for a rolling range?

    One way:

    =IF(COUNT(B2:Y2)<12,AVERAGE(B2:Y2),AVERAGE(OFFSET(B2,,MATCH(1E100,B2:Y2)-1,1,-12)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Formula for a Rolling 12 month Average
    By dandavis1 in forum Excel General
    Replies: 8
    Last Post: 05-04-2018, 06:24 PM
  2. [SOLVED] Rolling average formula
    By T15K in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-28-2013, 04:41 AM
  3. Formula for Rolling Average from Multiple Worksheets
    By rstotty in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 04-21-2012, 01:16 PM
  4. Conditionally extending range of rolling average -- ??
    By burro in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-30-2011, 06:01 AM
  5. Rolling Average Formula
    By frank26003 in forum Excel General
    Replies: 9
    Last Post: 09-03-2010, 03:49 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