Hi
I'm working on a sheet for a local Darts Club. We meet once every month, and I need to randomize the games for all present participants. I have an Excel sheet, and for each month I have a worksheet.
I can select the present participants in Column A. This is variable for each month (one month we have 21 participants, next month 18). I managed to get all unique games based on all participants I have.
So for instance; I have 11 participants, the formulas generates a list of 55 unique games that are available to play (I also have a VBA script that generates me the list). These games are stored in a seperate column (let's say column D, in this format "Participant X vs Participant Y")
The harder part of the work starts now: I need to be sure that from those 55 unique games, Excel selects 3 random games for each participant and put these in a new column (Column E).
Let's say the script works and starts generating for the first entered participant (Thomas):
Thomas vs Ben
Thomas vs Joe
Thomas vs Viktor
I have 3 games for Thomas, but also 1 game for Ben, Joe and Viktor. So these participants need to be assigned two more games. Ben is the second participant in the list
Ben vs Peter
Ben vs Joe
Ben now has three games assigned. Joe has two games assigned. Joe is the third participant in the list in column A.
Joe vs Viktor
Joe now has three games assigned. Viktor has two games assigned.
And so on.
I could go with a VBA script to select random games, but the part of 3 games per participant is giving me a headache. Anyone could help me?
I'm working on a sheet for a local Darts Club. We meet once every month, and I need to randomize the games for all present participants. I have an Excel sheet, and for each month I have a worksheet.
I can select the present participants in Column A. This is variable for each month (one month we have 21 participants, next month 18). I managed to get all unique games based on all participants I have.
So for instance; I have 11 participants, the formulas generates a list of 55 unique games that are available to play (I also have a VBA script that generates me the list). These games are stored in a seperate column (let's say column D, in this format "Participant X vs Participant Y")
The harder part of the work starts now: I need to be sure that from those 55 unique games, Excel selects 3 random games for each participant and put these in a new column (Column E).
Let's say the script works and starts generating for the first entered participant (Thomas):
Thomas vs Ben
Thomas vs Joe
Thomas vs Viktor
I have 3 games for Thomas, but also 1 game for Ben, Joe and Viktor. So these participants need to be assigned two more games. Ben is the second participant in the list
Ben vs Peter
Ben vs Joe
Ben now has three games assigned. Joe has two games assigned. Joe is the third participant in the list in column A.
Joe vs Viktor
Joe now has three games assigned. Viktor has two games assigned.
And so on.
I could go with a VBA script to select random games, but the part of 3 games per participant is giving me a headache. Anyone could help me?