taysomraven
New Member
- Joined
- Aug 14, 2023
- Messages
- 12
- Office Version
- 365
- Platform
- Windows
I am trying to setup a spreadsheet that will allow me conduct and offline weighted lottery. The lottery operates as follows: 14 balls labeled 1 through 14 go into a lotto machine, and then 4 balls are drawn consecutively *without* replacing the balls between each draw. The resulting 4 balls make up a Combination (ie. order doesn't matter.) Using 14 possible balls, and drawing 4 at a time, that means we're working with a total of 1,001 possible combinations (written the high school math way, 14C4 = 1,001). I've used a combination generator to produce all of the 1,001 combinations, which I can copy / paste into a column in a spreadsheet.
Here's what I need help with:
So the biggest things I need from the workbook are:
> Randomly assign the combinations to the participants, based on the entered weightings.
> An easy way to remove a participant, recalculate the weightings, and then reassign the numbers after each draw. I'll probably be dealing with at least 10 participants, and the weightings would of course be far different too at that point. A more elegant way of removing participants, and recalculating weightings would be really wonderful (manually is certainly an option, but it's far from ideal.)
Any help is greatly appreciated!
Here's what I need help with:
- Once the combos are in the spreadsheet, I want to assign them randomly AND in a weighed fashion to each of 4 possible people (Randy, Jake, Kyle, and Ted.) For the purpose of this example, we'll use the following names and weights:
- Randy gets 50% of the combos
- Jake gets 25%
- Kyle gets 15%
- Ted gets 10%
- The first combo will be drawn (4 balls) and I'll match the combo up to the assigned numbers to find who won (either Ctrl+F, or something more elegant like Index / Match.)
- The person who won will be removed from the pool of names, and then the weightings will be updated accordingly.
- For example, if Randy's number gets drawn, then the new weighting would be determined as follows: Jake gets 50% (25/50), Kyle gets 30% (15/50), and Ted gets 20% (10/50). If it's not clear, 25+15+10 = 50, which is the denominator, and the weight the person started with is the numerator.
- The 1,001 numbers are now assigned again using the updated weightings.
- Now we just repeat steps 2 through 4 until everyone has been chosen.
So the biggest things I need from the workbook are:
> Randomly assign the combinations to the participants, based on the entered weightings.
> An easy way to remove a participant, recalculate the weightings, and then reassign the numbers after each draw. I'll probably be dealing with at least 10 participants, and the weightings would of course be far different too at that point. A more elegant way of removing participants, and recalculating weightings would be really wonderful (manually is certainly an option, but it's far from ideal.)
Any help is greatly appreciated!