+ Reply to Thread
Results 1 to 10 of 10

Finding golf handicaps using best 2 out of 3 last rounds played

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Finding golf handicaps using best 2 out of 3 last rounds played

    I have run a golf league for years and I use my own excel spreadsheets to track scores and calculate handicaps. I currently use formulas to calculate the best 2 out of 3 round played but I have to manually change it each week because I have not been able to figure out out a formula that does it for the entire year. Here's what I'm looking for:

    Golfer is in Column A and 18 weekly scores are in the columns to follow B thru S. I have 40 golfers. To calculate the handicap I take the best 2 out of 3 of the last rounds played then add the two scores together and subtract by 72 then multiply by .93 and finally divide by 2. The part of the formula I cannot figure out is how to find the best 2 out of 3 last rounds played in the row from column B to S. Some golfers may miss a week so you will have empty weeks so it needs to take that into consideration as well. Here is an example using 6 weeks of play (a dash is a missed week) and how I calculate it now.


    42, 45, _, 40, 41, _

    The best 2 out of 3 rounds in this example would be 40 & 41. Here is the calculation for the handicap

    40 + 41 = 81 - 72 = 9 X .96 = 8.64 / 2 = 4.32 The 4.32 is then rounded down for the the final handicap.

    Any help would be greatly appreciated !!!!

  2. #2
    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,939

    Re: Finding golf handicaps using best 2 out of 3 last rounds played

    Hi

    Not sure where the best 2 of three part comes in, but couldnt you just use =small(range,1) and =small(range,2) to find the 2 smallest values?

    which values would you have teken in...
    40, 45, _, 40, 41, _
    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

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

    Re: Finding golf handicaps using best 2 out of 3 last rounds played

    Will there always be at least 3 scores? If not, then what should happen?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    03-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Finding golf handicaps using best 2 out of 3 last rounds played

    There won't always be three scores for instance if the season is new or a golfer is new there won't be a score until their first round. In the example above the best 2 out of 3 LAST rounds played would be 41, 40 & 45 since their were some missing rounds.

    Thanks

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Finding golf handicaps using best 2 out of 3 last rounds played

    This array formula will give you the sum of the best 2 out of the last 3

    =SUM(LARGE(IF(COLUMN(B2:S2)>=LARGE(IF(ISNUMBER(B2:S2),COLUMN(B2:S2)),MIN(COUNT(B2:S2),3)),IF(ISNUMBER(B2:S2),B2:S2)),{1,2}))

    confirmed with CTRL+SHIFT+ENTER

    If there are 2 scores it simply gives the sum of those 2....if there are fewer scores you get an error, if you want you can prevent that error with an extra If function.....
    Audere est facere

  6. #6
    Registered User
    Join Date
    03-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Finding golf handicaps using best 2 out of 3 last rounds played

    When I try this using the example I gave it returns an 86 when it should be 81 adding 40 & 41 because they were the best 2 out of last 3 rounds played.

  7. #7
    Registered User
    Join Date
    03-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Finding golf handicaps using best 2 out of 3 last rounds played

    Here is a copy of last years spread sheet so you can better understand what I need to accomplish. Right now I manually change the columns in the calculation in column D which is very cumbersome.
    Attached Files Attached Files

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Finding golf handicaps using best 2 out of 3 last rounds played

    Sorry, I was forgetting this is golf - my formula was giving the highest 2 scores out of the last 3 - of course you want the lowest 2, so the first LARGE function (only) should be SMALL, so like this for row 3 in your example

    =SUM(SMALL(IF(COLUMN(H3:Y3)>=LARGE(IF(ISNUMBER(H3:Y3),COLUMN(H3:Y3)),MIN(COUNT(H3:Y3),3)),IF(ISNUMBER(H3:Y3),H3:Y3)),{1,2}))

    confirmed with CTRL+SHIFT+ENTER and copied down

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

    Re: Finding golf handicaps using best 2 out of 3 last rounds played

    Try this...

    Let's assume the scores are entered in row 2.

    A2 = golfers name
    B2 = hdcp formula
    C2:Z2 = scores

    This array formula** entered in B2:

    =SUM(SMALL(INDEX(C2:Z2,LARGE((COLUMN(C2:Z2)-COLUMN(C2)+1)*ISNUMBER(C2:Z2),3)):Z2,{1,2}))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

    Here's what it'll do...

    If there are less than 2 scores you'll get a #NUM! error. We can stop the error but you need to tell us what you want for this scenario.

    If there are 3 scores it will sum the lowest 2 of those scores.

    If there are more than 3 scores it will sum the lowest 2 of the last (right-most) 3 scores.

    EDIT: I was working on a solution before I saw your post with the file. I did not look at you file.
    Last edited by Tony Valko; 03-11-2013 at 08:52 PM.

  10. #10
    Registered User
    Join Date
    03-08-2013
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Finding golf handicaps using best 2 out of 3 last rounds played

    This worked like a charm - I've been trying to figure this out for years. Thanks so much!!!!

+ 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