+ Reply to Thread
Results 1 to 4 of 4

Trailing Average Using AverageIf in Excel

  1. #1
    Registered User
    Join Date
    10-20-2014
    Location
    Londong, England
    MS-Off Ver
    2013
    Posts
    1

    Trailing Average Using AverageIf in Excel

    I am trying to find the average for the last 3 instances only. I am using the AVERAGEIF statement and it will calculate the average for the entire range but I need it to only calculate for that last 3 instances it finds (or less if there is less than 3 available). I need the entire column for G and H to have the average for the last 3 games that the Team played.

    This is what I have:

    =AVERAGEIF(B3:C17,B17,D3:E17)

    excelscreen.png

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Trailing Average Using AverageIf in Excel

    Welcome to the forum.

    It is better to attach a sample workbook so members could work on it.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Regards,
    Vladimir
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Trailing Average Using AverageIf in Excel

    Hi, welcome to the forum

    Agree with the suggestion to upload a sample workbook, but perhaps also take a look at using a helper column with =countif() to create a progressive count of teams, then use ">"&large(helper-column-range,,4)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Trailing Average Using AverageIf in Excel

    Pl see file attached.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 10-21-2014 at 12:58 AM.

+ 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. [SOLVED] Trailing average by quarter
    By sampahmel in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 02-27-2014, 02:27 AM
  2. Replies: 2
    Last Post: 09-21-2013, 10:49 AM
  3. [SOLVED] AVERAGEIF Formula Different then Excel Average
    By Winfield in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-30-2013, 09:13 PM
  4. [SOLVED] Excel 2010 AVERAGEIF function to average two different columns on two different tabs
    By stevemills04 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-05-2013, 01:48 PM
  5. Another Average or AverageIf Issue
    By scarames in forum Excel General
    Replies: 6
    Last Post: 08-18-2009, 11:09 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