+ Reply to Thread
Results 1 to 21 of 21

Populating teams from a dynamic player list

  1. #1
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Populating teams from a dynamic player list

    This is a golf league of 9 teams of up to 20 players each from a player list currently at 135 but could rise to 9 x 20 as new players arrive and sign up. As a new player enters the Players List he is assigned to a team identified by the initials of its captain. Using that info I wish to have the teams populated under the captains on a second sheet.
    Attached Files Attached Files

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Populating teams from a dynamic player list

    Most of this does not seem to be a problem. However in order to initiate the formulas we will need to know how to determine when each team begins in the list ... ie why is Coppola, Jay team (JC) first, Wait, Jim (JW) second etc, etc?

    Also what in the list (besides colors ... Excel formulas cannot read colors) tells us who the captains are?
    Dave

  3. #3
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Populating teams from a dynamic player list

    The 20-man (max) teams can be in any order. Nothing defines Captains other than the red color. The Captains on the Team sheet can be simply entered as text. Once a man is assigned to a team he never changes to another team. I just want to be able to insert new players alphabetically into the Player sheet, then, using the initials of the Captain (JC) populate the existing teams as new players sign up for the league.

  4. #4
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Populating teams from a dynamic player list

    Also, I would like the Players list to populate the Teams sheet...for the existing 135 players as well as any new people who may join the league.
    Jim

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

    Re: Populating teams from a dynamic player list

    You don't seem to be using column A of the Payers sheet - can I use this for a helper formula?

    Pete

  6. #6
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Populating teams from a dynamic player list

    Sure.
    Jim

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

    Re: Populating teams from a dynamic player list

    You seem to want your captains listed at the top of each team, although there is no way to identify them as such (as Dave mentioned earlier, a formula can't pick out a colour), so would it be possible to have another column in the Players sheet (say a new column D) that contains a Y to indicate the captains?

    Pete

  8. #8
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Populating teams from a dynamic player list

    Yes. I guess I thought the captain's initials would serve as the identifier as to who is on a given team...but then I have been unable to do this myself, so I will wait to see what you have in mind.
    Jim

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Populating teams from a dynamic player list

    Quote Originally Posted by FivestarMac View Post
    Yes. I guess I thought the captain's initials would serve as the identifier as to who is on a given team...but then I have been unable to do this myself, so I will wait to see what you have in mind.
    Jim
    Yes I understand that, but without a way to initiate each position 1 for each team you are left to manually type each captain into those positions. It defeats the whole purpose behind automating what you wish to do.

    Maybe like Pete suggests we can put something in column A for a helper ... "Captain" ... ?

  10. #10
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Populating teams from a dynamic player list

    Yes, there are no constraints on what you can add to this workbook,,,it's a work in progress, yet to be put into action.

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

    Re: Populating teams from a dynamic player list

    Okay, I've got the names sorted out now, but there is a football match on, so I'll pick this up later.

    Pete

  12. #12
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Populating teams from a dynamic player list

    OK, thanks.

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Populating teams from a dynamic player list

    Quote Originally Posted by FivestarMac View Post
    Yes, there are no constraints on what you can add to this workbook,,,it's a work in progress, yet to be put into action.
    Good deal.
    It the attached 'Players' Column1 has "Captain" where applicable.

    The 'Teams' sheet is a bit of a Medusa's head ...

    To start with in column B this identifies the captains and their respective team mates.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Then in column C find the captain's initials.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    To identify the scores by player and dates in column D
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Copy that range and paste into F2:AF2. Then to get the Best 5 in column E
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  14. #14
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Populating teams from a dynamic player list

    Way beyond anything I could have done, thanks so much.
    Jim

  15. #15
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Populating teams from a dynamic player list

    In my initial review I see that Jim Wait is On the Teams sheet in cell B162 and also cell B176. Can you identify what happened there, please.
    Jim

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

    Re: Populating teams from a dynamic player list

    Hello again.

    I've taken a different approach than Dave, and tried to automate as much as possible. On the Players sheet I've inserted two new columns, D and E, and also used column A. Column D allows you to indicate the captains by putting a Y against their name, so that your data input here (apart from the scores) will be the names in column B, the team initials in column C and a Y against the captains in column D - I've coloured the headings yellow for clarity.

    I've used column E as a simple helper column to identify the captains and give each a unique sequential number, by means of this formula in E2:

    =IF(D2="Y",MAX(E$1:E1)+1,"-")

    this is copied down to the bottom of the table. In column A I have used this formula in A2 (also copied down):

    =IF(C2="","",IF(D2="Y",C2&"_0",C2&"_"&COUNTIF(C$2:C2,C2)-COUNTIFS(C$2:C2,C2,D$2:D2,"Y")))

    Each player is given a unique code made up of the team initials, an underscore, and a unique number. Captains are numbered zero, to ensure that they come at the top of the list on the other sheet, whereas other players are numbered in sequence so that they will appear in alphabetical order on the team sheets (assuming your table is maintained in order, as you say). One consequence of this is that the team captains will be listed in alphabetical order as well, so the ordering on the other sheet will be different to the way you had set it up. I've also set up conditional formatting on the names column, so that captains will be shown with a red background and yellow bolded foreground, so there is no need to manually apply the colours.

    On the Teams sheet you can generate the numbers 1 to 20 repeatedly by putting this formula in cell A2:

    =MOD(ROWS($1:1)-1,20)+1

    and copying down. Similarly, the team initials in columns C can also be generated automatically using this formula in C2:

    =IF(A2=1,INDEX(Players!$C:$C,MATCH(COUNTIF(A$2:A2,A2),Players!$E:$E,0)),C1)

    The names can be generated in column B using this formula in B2:

    =IFERROR(INDEX(Players!$B:$B,MATCH(C2&"_"&A2-1,Players!$A:$A,0)),"")

    and copying this all the way down. Again, I have applied conditional formatting down this column to turn the captains' names red, so you don't need to do that manually. Notice, as I mentioned above, that the teams are in a different sequence than how you started. The scores for 6th November can be obtained with this formula in D2:

    =IFERROR(INDEX(Players!$G$2:$AH$136,MATCH($B2,Players!$B$2:$B$136,0),MATCH(D$1,Players!$G$1:$AH$1,0)),0)

    This should be copied all the way down, and it returns zero against blank names to avoid the #N/A errors that you had. This formula matches the header against the headers in the other sheet, so you can copy it into columns F, G, H etc. to pick up the scores for other weeks. I've done this for those columns in the attached file.

    Finally, the top-5 sum for each team can be obtained using this formula in E2:

    =IF(A2=1,SUMPRODUCT(LARGE($D2:$D21,{1,2,3,4,5})),"")

    Copy down to the bottom, but it will only show the result for each team on the first row, against the captain's name.

    If you insert a new name in the first sheet (along with initials), then it should be picked up automatically as long as the formulae in that table are also maintained. If you add a new captain to start another team, then the formula in the Teams sheet should be copied down another 20 rows.

    Hope this helps.

    Pete
    Attached Files Attached Files

  17. #17
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Populating teams from a dynamic player list

    Quote Originally Posted by FivestarMac View Post
    In my initial review I see that Jim Wait is On the Teams sheet in cell B162 and also cell B176. Can you identify what happened there, please.
    Jim
    2 mistakes in my formula column B. My bad . Try instead
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 11-15-2019 at 01:08 AM.

  18. #18
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Populating teams from a dynamic player list

    In these chaotic days around the world it is comforting to relate with those, like yourself, who trade in careful, weighed, analytical logic. Too bad those in leadership positions do not employ your considered approach to their problems as you have done to mine. This forum demonstrates to me, better than any other facet of my life, how well informed people, assisting others, can quickly solve problems and move forward. In my mind it's a bigger thing than Excel. Thanks for your role in it.
    Jim

  19. #19
    Forum Contributor
    Join Date
    01-19-2014
    Location
    United States
    MS-Off Ver
    Excel 365
    Posts
    110

    Re: Populating teams from a dynamic player list

    (I wish to make sure I thanked both of you.)

    In these chaotic days around the world it is comforting to relate with those, like yourself, who trade in careful, weighed, analytical logic. Too bad those in leadership positions do not employ your considered approach to their problems as you have done to mine. This forum demonstrates to me, better than any other facet of my life, how well informed people, assisting others, can quickly solve problems and move forward. In my mind it's a bigger thing than Excel. Thanks for your role in it.
    Jim

  20. #20
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Populating teams from a dynamic player list

    You are welcome. Glad to help. Thank for the feedback, your kind words and marking your thread Solved.

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

    Re: Populating teams from a dynamic player list

    Hi Jim,

    I've had difficulty getting my PC started today (and for the last few days), and in the end I had to un-install a Windows update from Tuesday night/Wed morning, so I've only just seen your posts.

    Glad to help, and thanks for those considered words.

    Thanks also for the added rep (and to Dave as well).

    Pete

    EDIT: I've just noticed that you and Dave joined the forum almost at the same time.
    Last edited by Pete_UK; 11-15-2019 at 02:30 PM.

+ 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. Replies: 14
    Last Post: 08-15-2020, 01:01 PM
  2. [SOLVED] Calculating individual player performance for 2 different teams - sumproduct or vlookup??
    By J_rice2004 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-19-2018, 03:31 AM
  3. Player Rating Teams
    By bradburyj in forum Excel General
    Replies: 1
    Last Post: 08-13-2017, 01:15 PM
  4. Replies: 6
    Last Post: 08-11-2017, 08:47 PM
  5. [SOLVED] Baseball Results: Master Player List & Dynamic Stats
    By Eric Alan in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-16-2017, 02:03 AM
  6. [SOLVED] Populating a Matrix using a dynamic list
    By dcossyl in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-19-2015, 01:06 PM
  7. Populating a Table from a Dynamic List selection
    By seanfoxen in forum Excel General
    Replies: 3
    Last Post: 12-19-2011, 01:38 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