+ Reply to Thread
Results 1 to 3 of 3

Average formula that averages the last 6 filled cells of a range

  1. #1
    Registered User
    Join Date
    04-10-2013
    Location
    Dothan, AL
    MS-Off Ver
    Excel 2003
    Posts
    1

    Average formula that averages the last 6 filled cells of a range

    I am working on a spreadsheet for a company that has FEW Excel users (and those few consider formatting experience). I am trying to setup a 6 month average worksheet where I can write an Average formula and select a 15 month range to cover. Then as the user enters values in new months, the formula will only average the last 6 months. I know that typically someone would just update the range, but this is a particularly inexperienced group and I am trying to prevent phone calls every month to "fix" something when they just don't know how/want to learn.

    Example:


    See attachment for example...Thanks!Attachment 227138

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,640

    Re: Average formula that averages the last 6 filled cells of a range

    Maybe this:
    Please Login or Register  to view this content.
    Confirmed with holding both Ctrl-Shift, the hit Enter
    Quang PT

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Average formula that averages the last 6 filled cells of a range

    Another option, also entered with CNTRL SHFT ENTER
    =AVERAGE(INDEX(Sheet1!$B4:$P4,MATCH(2,1/($B4:$P4>0))-MIN(5,MATCH(2,1/($B4:$P4>0))-1)):P4)
    My working range of dates ranged from B:P
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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