Formula to split employees into teams of 3 that are the same region BUT don't include the respective manager

maxim642

Board Regular
Joined
Feb 4, 2021
Messages
91
Office Version
  1. 365
Platform
  1. MacOS
I'd like a way to split the below data into groups of 3, so x13 groups.

The groups should ideally comprise 3 employees from the same region (all from Asia, or all from Europe), but if this can't be achieved because of the numbers involved it's not a dealbreaker.

The most important criteria is that each group should NOT include any manager for any of its respective members, e.g. if group 1 had Joe Bloggs 1, Joe Bloggs 2 & Joe Bloggs 3, managers 3, 39 and 2 could not be in that group.

Is there any way of doing this apart from manually going through the list and eyeballing each line? I thought a pivot might work but then got stuck there too. Thanks.

EmployeeJob TitleLevelDepartmentDirectorateNo.of ReportsCountryRegionManagerGroup
Joe Bloggs 1xxxxxxAsiaJoe Bloggs 3
Joe Bloggs 2xxxxxxAsiaJoe Bloggs 39
Joe Bloggs 3xxxxxxAsiaJoe Bloggs 2
Joe Bloggs 4xxxxxxAsiaJoe Bloggs 1
Joe Bloggs 5xxxxxxAsiaJoe Bloggs 2
Joe Bloggs 6xxxxxxEuropeJoe Bloggs 27
Joe Bloggs 7xxxxxxEuropeJoe Bloggs 8
Joe Bloggs 8xxxxxxAsiaJoe Bloggs 18
Joe Bloggs 9xxxxxxAsiaJoe Bloggs 2
Joe Bloggs 10xxxxxxEuropeJoe Bloggs 7
Joe Bloggs 11xxxxxxEuropeJoe Bloggs 2
Joe Bloggs 12xxxxxxEuropeJoe Bloggs 25
Joe Bloggs 13xxxxxxEuropeJoe Bloggs 2
Joe Bloggs 14xxxxxxEuropeJoe Bloggs 25
Joe Bloggs 15xxxxxxAsiaJoe Bloggs 13
Joe Bloggs 16xxxxxxEuropeJoe Bloggs 2
Joe Bloggs 17xxxxxxAsiaJoe Bloggs 1
Joe Bloggs 18xxxxxxEuropeJoe Bloggs 20
Joe Bloggs 19xxxxxxEuropeJoe Bloggs 17
Joe Bloggs 20xxxxxxEuropeJoe Bloggs 11
Joe Bloggs 21xxxxxxEuropeJoe Bloggs 16
Joe Bloggs 22xxxxxxEuropeJoe Bloggs 2
Joe Bloggs 23xxxxxxAsiaJoe Bloggs 19
Joe Bloggs 24xxxxxxEuropeJoe Bloggs 2
Joe Bloggs 25xxxxxxEuropeJoe Bloggs 27
Joe Bloggs 26xxxxxxAsiaJoe Bloggs 20
Joe Bloggs 27xxxxxxEuropeJoe Bloggs 12
Joe Bloggs 28xxxxxxEuropeJoe Bloggs 23
Joe Bloggs 29xxxxxxAsiaJoe Bloggs 7
Joe Bloggs 30xxxxxxEuropeJoe Bloggs 9
Joe Bloggs 31xxxxxxEuropeJoe Bloggs 5
Joe Bloggs 32xxxxxxEuropeJoe Bloggs 6
Joe Bloggs 33xxxxxxEuropeJoe Bloggs 3
Joe Bloggs 34xxxxxxEuropeJoe Bloggs 21
Joe Bloggs 35xxxxxxEuropeJoe Bloggs 39
Joe Bloggs 36xxxxxxEuropeJoe Bloggs 37
Joe Bloggs 37xxxxxxEuropeJoe Bloggs 21
Joe Bloggs 38xxxxxxEuropeJoe Bloggs 22
Joe Bloggs 39xxxxxxAsiaJoe Bloggs 20
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Glad to hear you got the solution.

Do you mind posting about your solution? Then it is perfectly fine to mark your post as the solution to help future readers.

Otherwise, please do not mark a post that doesn't contain a solution.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,685
Members
449,117
Latest member
Aaagu

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