derek_e2015
New Member
- Joined
- May 18, 2021
- Messages
- 7
- Office Version
- 2019
- Platform
- Windows
Hello,
I am trying to randomly select from a list (say 4 items in the list) and input the values into say 16 cells, But each item in the list can only be used a set number of times
Also thinking may have to do something where i have the full list of all item on the list, each item listed the number of times they need to appear then input them into the 16 cells and shuffle them but have not looked into that yet
Example:
Bob - needs to appear 5 time
Lisa - needs to appear 3 times
Steve - needs to appear 2 times
Sue - needs to apear 6 times
So the chart would look like this
bob - steve - bob - lisa
sue - lisa - sue - Bob
Steve - bob - bob - sue
Sue - Sue - lisa - sue
I can create a macro to randomly select from the list with a formula but can not figure out how to get the items in the list to only appear a set number of times.
any assistance on this would be greatly appreciated very new to VBA/Macros and I am unable to find any thing out there like this
Thank you
I am trying to randomly select from a list (say 4 items in the list) and input the values into say 16 cells, But each item in the list can only be used a set number of times
Also thinking may have to do something where i have the full list of all item on the list, each item listed the number of times they need to appear then input them into the 16 cells and shuffle them but have not looked into that yet
Example:
Bob - needs to appear 5 time
Lisa - needs to appear 3 times
Steve - needs to appear 2 times
Sue - needs to apear 6 times
So the chart would look like this
bob - steve - bob - lisa
sue - lisa - sue - Bob
Steve - bob - bob - sue
Sue - Sue - lisa - sue
I can create a macro to randomly select from the list with a formula but can not figure out how to get the items in the list to only appear a set number of times.
any assistance on this would be greatly appreciated very new to VBA/Macros and I am unable to find any thing out there like this
Thank you