I have a dynamic range of values that I want to split into N groups, where N is specified by the user.
I want to do the following:
- Split the group into N equal parts.
- Specify which ones in the range that are to be in separate groups.
- Have a "checker" to see if the math works out and it is possible to do (i.e. a group of 11 cannot be split into 2 groups).
Here is a scenario:
I have a list of 26 values (an array of letters, A to Z).
I want two groups, randomly split.
I specified 2 of the values where I want them to be separate (i.e. the letter B and X).
This should give me two groups, 13 values of "Group 1" and 13 values of "Group 2".
"Group 1" can contain something like ("B", "N", "V", "C", "T", ..... x 13)
"Group 2" contains ("X", "A", .... x 13)
The variables in this case are the # of values, # of groups to split, and specific values to split.
EDIT: google sheet example: https://docs.google.com/spreadsheets/d/1baZr8QAkFjw1UwsMOyphma6v_MNkWz-aCLx57yPsViE/edit#gid=1454808593


