+ Reply to Thread
Results 1 to 4 of 4

Average last 3 values of a row but not include blank cells

  1. #1
    Registered User
    Join Date
    09-01-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Average last 3 values of a row but not include blank cells

    Hello everyone,

    I have searched and searched and thought I found an answer but didn't.

    I am a golf coach and want to create a formula to average my golfers last three scores. However, not every player plays in each match, so some will have their last 3 scores be in a row where others may have blank cells inbetween.

    I have the data set up in rows such as this example of the last 3 matches:

    Golfer 1: 72, 72, 75, 78, 77
    Golfer 2: 80, , 81, , 84
    Golfer 3: 76, 77, 78, , 79

    Again, I want to average the last three cells in the row that have a value in them.

    Any suggestions?

    Much appreciated,

    Coach
    Last edited by golfcoach; 09-01-2014 at 05:22 PM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Average last 3 values of a row but not include blank cells

    Hi,

    Assuming your first set of scores are in A1:E1, you could use this array formula**:

    =SUM(IF(COLUMN(A1:E1)>=LARGE(IF(A1:E1<>"",COLUMN(A1:E1)),3),A1:E1))/3

    Regards


    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    09-01-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    2

    Re: Average last 3 values of a row but not include blank cells

    You are awesome, that worked. Thanks so much.

  4. #4
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Average last 3 values of a row but not include blank cells

    You're welcome!

    Cheers

+ 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. Average of last 5 values but to exclude any blank cells.
    By tb2000 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 01-12-2019, 03:14 PM
  2. How to count average of selected cells and not include zero?
    By Tilsted in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 01-06-2014, 09:46 AM
  3. Average of cells, not to include zero's or spaces
    By peakymatt in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2008, 09:03 AM
  4. Replies: 17
    Last Post: 06-27-2006, 08:40 AM
  5. Replies: 0
    Last Post: 03-03-2006, 03:20 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