Function Problems

Distribute Members into Balanced Groups in Excel 2019

Steve KSteve K Dec 2, 2026 868 views

Question details

Assign 100 members from uneven original groups to 12 new groups of eight or nine, while reducing repeated members from the same original group.

Distribute Members into Balanced Groups in Excel 2019
Product
Microsoft Excel 2019
Device & OS
not provided
Scenario
A member list contains original group labels and needs to be reorganized into balanced destination groups.
Observed behavior
The desired result is eight groups of nine and four groups of eight, with original groups spread across the destinations.
Before you start

Put one member per row, with member names in column A and original group labels in column B. The steps below assume headers in row 1 and exactly 100 members in rows 2 through 101, with no blank rows.

Solution 1Recommended

Assign Groups with a Round-Robin Formula in Excel 2019

Use a source-group sort and a helper formula to create balanced groups without newer dynamic array functions.

Sorting by original group places its members together; cycling through destination groups then spreads each consecutive set across those groups. This reduces repetition but does not guarantee the best possible arrangement for every source-group size.

1
Sort by original group

Select the full member table, including both columns, and choose Data > Sort. Sort by the original group column, and expand the selection if Excel asks.

2
Add destination group numbers

Enter New Group in C1. In C2, enter =MOD(ROW()-2,12)+1, then fill the formula down through C101.

3
Make assignments permanent

Select C2:C101, copy the cells, and use Home > Paste > Values. This prevents the row-based assignments from changing if you sort the table again.

4
Check the groups

Sort the full table by New Group to review the assignments. Use COUNTIF on C2:C101 to confirm that groups 1–4 have nine members and groups 5–12 have eight, then inspect the original group labels for unwanted repeats.

Assign Groups with a Round-Robin Formula in Excel 2019
Repeated source groups: If an original group has more than 12 members, at least one destination group must contain more than one of its members. You can manually swap members between destination groups to improve the mix without changing group sizes.
Work with spreadsheets in WPS Office

Create Balanced Member Groups in WPS Spreadsheet

Use sorting and a round-robin helper formula in WPS Spreadsheet to distribute members across 12 balanced groups.

  1. 1. Open the member list: Open the workbook in WPS Spreadsheet and check that names are in column A and original groups are in column B, with 100 members in rows 2–101.
  2. 2. Sort the source groups: Select the full table and use Data > Sort to sort by the original group column.
  3. 3. Assign destination groups: Enter =MOD(ROW()-2,12)+1 in C2 and fill it down through C101 to assign group numbers 1–12.
  4. 4. Save and review: Copy C2:C101 and use Paste Special > Values. Sort the full table by the new group column and review the original group labels before saving the workbook.
Assign members to groups of eight or nineSpread members from the same original group across destinationsOpen and save Microsoft Excel XLSX filesUse familiar spreadsheet sorting and formulas
microsoft office alternative - wps office

Frequently Asked Questions

Why do four groups have eight members instead of nine?

One hundred members divided among 12 groups gives eight members per group, with four members left over. The formula assigns those four extra members to groups 1–4.

Does this method guarantee that no original group is repeated?

No. Sorting by original group and cycling through destinations spreads consecutive members, but the result should still be reviewed. An original group with more than 12 members must repeat in at least one destination group.

Can I randomize the members before assigning groups?

Yes. Add a helper column with =RAND(), fill it down, and use Data > Sort to sort first by original group and then by the random helper column. Apply the group formula after sorting.

Why should I paste the group formulas as values?

The formula uses ROW(), so its results can change when rows move. Copy the assignment cells and use Home > Paste > Values before sorting or rearranging the assigned list.

Can Excel 2019 use SEQUENCE for the group layout?

Excel 2019 does not support the SEQUENCE dynamic array function. Use the MOD and ROW formula instead; SEQUENCE is available in newer Excel versions.