+ Reply to Thread
Results 1 to 8 of 8

Calculate AVERAGE from LOWEST 8 values from a maximum range of 20 events

  1. #1
    Registered User
    Join Date
    04-08-2020
    Location
    Here
    MS-Off Ver
    365
    Posts
    3

    Question Calculate AVERAGE from LOWEST 8 values from a maximum range of 20 events

    Hello Gurus,

    Working on some golf handicapping calculations. Yes, this is a topic that's popped up on the Forums in the past and I've read through lots of threads which have been of great assistance; but running into situation where I'm trying to calculate the handicap (average of the 8 lowest scores from the most recent 20 games played) while ignoring blank cells from selected range(s).

    My calculations are currently working, up to the point until I have my 9th or more rounds played, and then I'm no longer getting an average of my LOWEST 8 rounds but merely a average of most recent 8 scores.

    Sample calculation currently used:

    =IF(AN4>0,AVERAGE(INDEX(X4:AN4, LARGE(IF(X4:AN4<>"", MATCH(COLUMN(X4:AN4),COLUMN(X4:AN4)), ""), BQ4)):INDEX(X4:AN4,MATCH(1E+307, X4:AN4))),"")

    AX:AN are differentials
    BQ is a helper field referring to number of events that should be used in calculations
    CD is a helper field (in attachment) that can be used to determine maximum range of scores or offsets

    I've attached a truncated spreadsheet, plus additional notes and a complete manual breakdown of what scores should be getting detected but aren't and a cross-comparison of manual handicap calculations vs. what I'm actually getting. There are a couple of helper cells included and if additional helper cells are required that's OK too, but would like to keep them on the same ROW as each ROW will represent an individual participant. The attached example only consists of a single participant.

    Many thanks in advance for anyone able to take a closer look. Thanks!!
    Attached Files Attached Files
    Last edited by 49degrees; 04-26-2020 at 10:57 AM.

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Calculate AVERAGE from LOWEST 8 values from a maximum range of 20 events

    Please try at C4

    =IF(AF4="","",AVERAGE(SMALL($AF4:AF4,ROW($A$1:INDEX($A:$A,MIN(8,COUNT($AF4:AF4)))))))

    or

    =IF(AF4="","",AVERAGE(SMALL($AF4:AF4,SEQUENCE(MIN(8,COUNT($AF4:AF4))))))
    Attached Files Attached Files
    Last edited by Bo_Ry; 04-25-2020 at 04:52 PM.

  3. #3
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Calculate AVERAGE from LOWEST 8 values from a maximum range of 20 events

    May be
    Please Login or Register  to view this content.
    But there is only 20 items in source
    last 5,8 6,1 6,5 4,8 8,5 6,5 5,8 that was in the manual calculation i cant find.
    Attached Files Attached Files
    Last edited by BMV; 04-25-2020 at 05:13 PM.

  4. #4
    Registered User
    Join Date
    04-08-2020
    Location
    Here
    MS-Off Ver
    365
    Posts
    3

    Re: Calculate AVERAGE from LOWEST 8 values from a maximum range of 20 events

    Hi Bo_Ry and BMV,

    Thank you both for taking the time to review the file. Both of your solutions appear to work up to event 22. I've expanded the same spreadsheet to match the manual chart examples that I provided. Seems that once we need to start ignoring events that are more than 20 games in the past that the results start to vary.

    NOTE: I also added in a couple of extra HELPER COLUMNS if that helps:
    • CY4 - is a running total of the number of games played
    • A4 - is the running total of the number of games played (with a MAX RULE of 20 games applied)
    • And, as in the original example; BW4:CW4 are the total of games that should be used in the handicap calculation based on events played. (Eg. 1 game played = 1 game used for calculation. This is similar to the translation explanation that I included start at AN34:AN60 with the LOWEST 2 or LOWEST 8 scores being used)

    Additional notes: This example includes 27 events, but could easily be expanded 40+ if needed, though we don't play that much in my particular activity. The number of participants could also be upwards of 100 or more, so in either instance, looking as using these calculations that can carry down similarly over columns/rows as needed. Some people could miss multiple weeks in a row, etc.

    Attached is an expanded example of BMVs version.

    Thanks again for your assistance!!!
    Attached Files Attached Files

  5. #5
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Calculate AVERAGE from LOWEST 8 values from a maximum range of 20 events

    Please Login or Register  to view this content.
    Attached Files Attached Files

  6. #6
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Calculate AVERAGE from LOWEST 8 values from a maximum range of 20 events

    Please try at C4

    =IF(AM4="","",AVERAGE(SMALL(INDEX($AM4:AM4,MAX(1,COUNT($AM4:AM4)-19)):AM4,ROW($A$1:INDEX($A:$A,MIN(8,COUNT($AM4:AM4)))))))
    Attached Files Attached Files

  7. #7
    Forum Expert BMV's Avatar
    Join Date
    01-13-2020
    Location
    St-Petersburg, Russia
    MS-Off Ver
    2013-2016
    Posts
    1,329

    Re: Calculate AVERAGE from LOWEST 8 values from a maximum range of 20 events

    @Bo_Ry as i see it's the same and the difference is only method to generate arrays 1-8 and 1-20.

  8. #8
    Registered User
    Join Date
    04-08-2020
    Location
    Here
    MS-Off Ver
    365
    Posts
    3

    Smile Re: Calculate AVERAGE from LOWEST 8 values from a maximum range of 20 events

    That's excellent. THANK YOU very much Bo_Ry and BMW.
    Very much appreciate your assistance in helping correct the formula.

+ 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] Average between only highest and subsequent lowest values throughout a range
    By garethlittle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-26-2020, 08:51 PM
  2. Replies: 2
    Last Post: 08-24-2016, 05:52 AM
  3. Excel formula to calculate Average and Maximum between a time frame
    By prakee in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-29-2014, 12:48 PM
  4. Need to calculate average if values fall into EITHER range.
    By daxplicitazn in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-25-2013, 12:37 PM
  5. Replies: 8
    Last Post: 06-26-2012, 06:45 PM
  6. Calculate the maximum TEXT values in a range, but exclude one value?
    By kpratico in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-19-2010, 04:00 PM
  7. [SOLVED] Average of lowest 5 of 20 values?
    By Fatfreek in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-15-2006, 10:55 PM

Tags for this Thread

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