I have a bulk list of 2000+ names along with their certification/qualification and affiliated group.
I need to come up with an automated way of assigning each of these people into 40 groups. Each group must have a minimum of X numbers of each qualification (ex. Group 1 must have a 2 plumbers, 2 scientists and 10 fisherman, where group 2 must have 40 plumbers, 8 scientists and 2 fisherman). I'd prefer to keep any people with affiliated groups close to each other, preferably in the same group.