+ Reply to Thread
Results 1 to 36 of 36

Picking random teams based on a number (golf handicap)

  1. #1
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Picking random teams based on a number (golf handicap)

    Hi Guys... I'm new to Excel but I'm amazed at its power.

    So, I have a group of 80 people (golfers)... each has an individual handicap ranging from 5 to 36.

    I need to group them into random teams of 4, so that each team gets a low number, a mid number, a mid number and a high number. e.g. Team A has 4 players with random handicaps of 8, 16, 18 & 28...

    Can it be done? I will also, on other occasions, need to group them into teams of 3 so I'm guessing it will be a similar formula?

    Thanks in advance

    Gerry

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Picking random teams based on a number (golf handicap)

    As you have 80 players, will you always have 20 who are low handicappers, 40 who are mids and 20 who are high. I created a file that had a random mix of handicaps and of course those numbers do not work out equally. How do you wish to set that up? 20 lowest handicaps, next 40 handicaps and remaining 20? Need some clarification. Will teams change weekly or will they be static for the season based upon starting handicaps.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,895

    Re: Picking random teams based on a number (golf handicap)

    Assuming my question above, here is a sample document that you can try if you agree with my criteria as asked above. If you have a different criteria, please share
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    Thanks Alan... you're correct... 20 low, 40 mid & 20 high... the team only plays for one day... each time that there's a new competition, a new team must be drawn/selected... it's very time consuming so an Excel formula will be brilliant. In the event of it being a team of 3, each team would have a low handicap, a middle handicap & a high handicap.
    Thanks a lot for your help.

  5. #5
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Picking random teams based on a number (golf handicap)

    Here another option where the combination of each team is a little more variable.
    Attached Files Attached Files
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  6. #6
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    Thanks Alan... you're correct... 20 low, 40 mid & 20 high... the team only plays for one day... each time that there's a new competition, a new team must be drawn/selected... it's very time consuming so an Excel formula will be brilliant. In the event of it being a team of 3, each team would have a low handicap, a middle handicap & a high handicap.
    Thanks a lot for your help.

  7. #7
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    Hi Alan... a quick question. If I use your workbook as a Master template, i) how will it work if we have more or less than 80 players and ii) how will it work for a competition for teams with 3 players?
    Thanks again

    Gerry

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Picking random teams based on a number (golf handicap)

    Ad or delete names and handicap in this file and everything is automatically adjusted. (max 120 players)
    The other worksheet is for 3 groups
    Attached Files Attached Files
    Last edited by popipipo; 04-26-2023 at 09:05 AM. Reason: second sheet

  9. #9
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    Thanks Popipipo... great work... on the second version the "iferror" appears when I click on the name cells... I'm an absolute beginner at Excel so I'm not sure if it's important??
    I really appreciate your effort... thanks again.

    Gerry

  10. #10
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Picking random teams based on a number (golf handicap)

    The ifferror means that if you get an error it shows nothing (...,""...)
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    I get it... thanks... I'm learning all the time but I have a long way to go...

  12. #12
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    Hello again Popipipo... So, I've entered a new list of 28 of our members and their handicaps... it's an experiment just to see if I can get it to work ... If deleted all the names and handicaps that you had created... All the teams that you created were cleared...
    What do I need to do to get the programme to run and create the teams? This will be a brilliant tool for the golf club as we run lots of team competitions during the summer and it takes us hours to draw the teams.
    Thanks
    Gerry

  13. #13
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Picking random teams based on a number (golf handicap)

    Delete all the names and handicaps in columns A and B

    Fill then column A with new names and column B with handicaps

  14. #14
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17
    Quote Originally Posted by popipipo View Post
    Delete all the names and handicaps in columns A and B

    Fill then column A with new names and column B with handicaps
    Ive entered 28 name + handicaps just to see if it will work for me... is there something that I need to do for the teams to be formed? At the moment, the cells are blank?

  15. #15
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Picking random teams based on a number (golf handicap)

    Show me this file
    I don't exactly know what you mean.

  16. #16
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    I think that I've attached it...
    Attached Files Attached Files

  17. #17
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Picking random teams based on a number (golf handicap)

    With conditional format I made the cells blank.

    Remember to sort the table on handicap.
    Attached Files Attached Files

  18. #18
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    I've sorted the column by handicap, added a few new names but I still can't get the teams to form / generate? The cells are blank.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17
    Quote Originally Posted by Madzer View Post
    I've sorted the column by handicap, added a few new names but I still can't get the teams to form / generate? The cells are blank.
    I should also have added, when I clicked on "enable editing" the teams on Excel_2 vanished?

  20. #20
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Picking random teams based on a number (golf handicap)

    If I open the file there is nothing wrong
    I see 28 teams in column A and also 28 teams in E6:L11

    Which cells are blank?

  21. #21
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    When I open your attachment, Excel_2, the area with the teams, E6 to L11 is fully populated exactly as required. However, when I click the button to "Enable Editing" cells E6 to L11 immediately become blank.

    So, after I entered the 28 names and associated handicaps, what's the next step that I should take to create the teams?

  22. #22
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Picking random teams based on a number (golf handicap)

    I don't know because i don't have that problem.
    Does anybody else have this problem to?

  23. #23
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17
    I'll run it on a different PC... it may be because of security settings on my laptop.
    If you send me the workbook without any data in the columns for name & handicap... I input a list of names and handicaps... what must I do next to make the teams form??
    Last edited by AliGW; 05-05-2023 at 06:29 AM. Reason: Please do NOT quote unnecessarily!

  24. #24
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Picking random teams based on a number (golf handicap)

    If you are using XL2010, as your profile states, then you won't have the XLOOKUP function available, which is used in the green cells in columns E to J. Because of the IFERROR function in those cells, they all appear blank.

    Update your profile if you are using a later version of Excel.

    Hope this helps.

    Pete

  25. #25
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Picking random teams based on a number (golf handicap)

    You can change to INDEX/MATCH instead of XLOOKUP if you are still using a version that does not support it. Use these formulae in the cells stated on data3 sheet:

    E6: =IFERROR(INDEX($A$2:$A$100,MATCH(M6,$C$2:$C$100,0)),"")

    F6: =IFERROR(INDEX($B$2:$B$100,MATCH(M6,$C$2:$C$100,0)),"")

    G6: =IFERROR(INDEX($A$2:$A$100,MATCH(N6,$C$2:$C$100,0)),"")

    H6: =IFERROR(INDEX($B$2:$B$100,MATCH(N6,$C$2:$C$100,0)),"")

    I6: =IFERROR(INDEX($A$2:$A$100,MATCH(O6,$C$2:$C$100,0)),"")

    J6: =IFERROR(INDEX($B$2:$B$100,MATCH(O6,$C$2:$C$100,0)),"")

    then copy them down. You will need to make similar changes to the data4 sheet.

    Hope this helps.

    Pete

  26. #26
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Picking random teams based on a number (golf handicap)

    XL2010
    Good observation Pete I didn't see that

  27. #27
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    Hi Guys... as I wrote previously, I'm completely out of my depth in Excel... but I gave quite a few hours trying your solutions by copying & pasting but to no avail. I didn't understand your formulae so, when it wasn't working, I didn't know what to change.

    For now, I'm going to admit defeat.

    I want to take this opportunity to thank you for your help and the time you put into it. I really appreciate it. If you're ever in Kilkee, Co. Clare, Ireland and you fancy a game of golf, drop me an email.

    Gerry

  28. #28
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Picking random teams based on a number (golf handicap)

    Don't want you to feel defeated.
    Pete's formulas are now applied to both sheets.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  29. #29
    Forum Contributor
    Join Date
    08-10-2022
    Location
    Manchester
    MS-Off Ver
    2021
    Posts
    109

    Re: Picking random teams based on a number (golf handicap)

    You say this is for your golf club.

    Whilst this is not an Excel based solution, so maybe I shouldn't post this, but what handicap software does your golf club use? ClubV1 and Intelligent Golf both provide the option to do random or balanced draws based on handicaps. I don't know about BRS, never having used it, but as most clubs play competitions on this basis, I'd suspect it does.

    I run all the competitions at my club, come back to me by all means if I can help you further.






    Mod Edit: "maybe I shouldn't post this,"
    It's fine and it's a perfectly valid observation.
    Last edited by AliGW; 05-09-2023 at 06:07 AM.

  30. #30
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    Thanks for the reply... our club is using ScoreMaster and I'm not sure if it has the facility to do this... However, I will check it out... I believe that we're changing to BRS shortly so maybe they offer that option...

  31. #31
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17

    Re: Picking random teams based on a number (golf handicap)

    Brilliant... thanks... I cleared all the names & handicaps, repopulated the cells, sorted the Name/Handicap columns by handicap low to high and it generated balanced teams. I'm delighted. Thank you all.
    Gerry.

  32. #32
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,733

    Re: Picking random teams based on a number (golf handicap)

    Glad to hear that.

    If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Also, since you are relatively new to the forum, you might like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

  33. #33
    Forum Contributor
    Join Date
    08-10-2022
    Location
    Manchester
    MS-Off Ver
    2021
    Posts
    109

    Re: Picking random teams based on a number (golf handicap)

    Quote Originally Posted by Madzer View Post
    Thanks for the reply... our club is using ScoreMaster and I'm not sure if it has the facility to do this... However, I will check it out... I believe that we're changing to BRS shortly so maybe they offer that option...
    Isn't ScoreMaster part of the HandicapMaster package. If so: This might be what you need:

    13.7.2.4 How a Balanced Draw is calculated
    The Start Sheets re-order option Reorder Players into 'Balanced' Groups is designed to reorder the
    players so that each group has players with a low, a medium and a high handicap, etc. That is, each
    group has broadly the same mix of player abilities.
    How HandicapMaster creates a balanced draw
    The calculation is based on the Handicap Index of those players already added to the Start Sheet grid.
    1. The first column in the grid is filled with players with the lowest handicaps.
    2. The last column is filled with players with the highest handicaps.
    3. Any middle columns are filled with players with handicaps in the best range(s) possible.
    4. Players in each column are then randomly shuffled (column by column), to create a more random
    spread across the games.
    Pairs Competitions
    Where the Start Sheet is for a pairs competition (such as Foursomes, Four-ball, etc), HandicapMaster
    will balance the players in each team pairing (rather than across all four players in each Tee Time).
    Effectively, one player from the 50% of players with lower handicaps will be paired with one player from
    the 50% with higher handicaps.
    Notes
    Once players have been re-ordered so there is one player from each range of handicaps in each
    group, no attempt is made to balance up the total handicaps group by group.
    If some individual cells have been marked as 'Unavailable', this can affect the accuracy of the results
    of the reordering. It is not recommended that a balanced draw is attempted if the grid contains
    isolated "unavailable" cells.

  34. #34
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,570

    Re: Picking random teams based on a number (golf handicap)

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

  35. #35
    Registered User
    Join Date
    04-25-2023
    Location
    Limerick Ireland
    MS-Off Ver
    2010
    Posts
    17
    @Manchester Gunners

    You're spot on... it's HandicapMaster that we're using at present... my mistake... I'll check it out when I get back to my laptop... thanks again.
    Last edited by AliGW; 05-09-2023 at 10:53 AM. Reason: Please do NOT quote unnecessarily!

  36. #36
    Registered User
    Join Date
    05-08-2023
    Location
    Woodbridge
    MS-Off Ver
    Windows 11
    Posts
    1

    Re: Picking random teams based on a number (golf handicap)

    One popular method is using Excel's random number generation functions in combination with handicap ranges. This can be achieved by assigning a random number to each golfer and then categorizing them into groups based on their handicap range. You can then use these groups to form teams. Another approach, as mentioned by some contributors, involves using VBA (Visual Basic for Applications) to automate the team selection process. VBA provides more flexibility and control, allowing you to customize the algorithm according to your specific requirements.
    found project

+ 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] Sort and create golf teams from handicap
    By jndipworm in forum Excel General
    Replies: 15
    Last Post: 04-06-2023, 07:54 AM
  2. Replies: 14
    Last Post: 08-15-2020, 01:01 PM
  3. Teams made according to Handicap
    By Scarsax in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-24-2019, 07:53 AM
  4. Golf Handicap
    By jjay2109 in forum Excel General
    Replies: 2
    Last Post: 05-18-2012, 03:03 AM
  5. Replies: 3
    Last Post: 07-01-2009, 03:17 AM
  6. Excel-based golf handicap tool
    By HandicapConquest in forum Excel General
    Replies: 6
    Last Post: 09-05-2005, 03:05 PM
  7. [SOLVED] golf handicap
    By Phineus in forum Excel General
    Replies: 4
    Last Post: 07-03-2005, 11:05 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