Hi All,
I have a macro I'm working on and am having trouble creating a randomizer to find the answer to a solution I'm looking for. Here's the data I need to randomize:
Column A contains a Unique ID (1,2,3,4,5 etc)
Column B needs to be populated with a number between 1 and 50 but must be divisible by 5.
I'm looking to have Excel stop when a set of criteria is hit as it continues to randomize to find what I'm looking for.
e.g. Stop when the Unique IDs all have a value of 10 in Column B and output how many runs it took.
Please let me know if this is possible via VBA or if I need to work in Python/another coding language to solve for this.
Thanks.
I have a macro I'm working on and am having trouble creating a randomizer to find the answer to a solution I'm looking for. Here's the data I need to randomize:
Column A contains a Unique ID (1,2,3,4,5 etc)
Column B needs to be populated with a number between 1 and 50 but must be divisible by 5.
I'm looking to have Excel stop when a set of criteria is hit as it continues to randomize to find what I'm looking for.
e.g. Stop when the Unique IDs all have a value of 10 in Column B and output how many runs it took.
Please let me know if this is possible via VBA or if I need to work in Python/another coding language to solve for this.
Thanks.
Last edited: