Group list of names while considering different dependencies

Seba Robles

Board Regular
Joined
May 16, 2018
Messages
71
Office Version
  1. 2019
  2. 2016
Platform
  1. Windows
So here's an interesting challenge I've been trying to work on... I have the idea in my head but can't seem to translate it into Excel.

I have a long list of names that I'm trying to group together into different waves. These waves have different logical conditions (ordered by priority);
  1. People under the same 'Dependency' should be within the same 'Group'
  2. Additionally, 'Secretaries' should be grouped with their respective leads (E.g. Daniela should be in Sarah's group) which takes precedence over the 'Dependency' if Daniela is in a different 'Dependency' in this specific case
  3. If none of the above are met, people should be grouped by 'Department' (this can be by alphabetical order A to Z)
  4. A group should stay within 900 to 1,200 people. If the max is reached, a new group is created. (Different 'Dependencies' can be within the same group as long as it's within the range)
NameDependencySecretaryDepartmentGroup
DanielaNo Dependency-Dept. A1
JackGroup A-Dept. A1
SarahGroup BDanielaDept. B2
JohnGroup CBobDept. B2
KatieGroup C-Dept. C2
SamGroup A-Dept. C1
BobNo Dependency-Dept. D2
HoraceNo Dependency-Dept. E3

I'm trying to find a quick way to get through a list that has thousands of rows and many more columns, but those are the ones I'm looking at... if it's not possible I'd have to do it by brute force.

Let me know if you have any questions or need me to clarify anything.

Any helps is appreciated!!
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Hello! Wanted to see if anyone could help with the above?
 
Upvote 0

Forum statistics

Threads
1,215,562
Messages
6,125,546
Members
449,237
Latest member
Chase S

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top