How to Balance Excel Groups by Accounts and Dollar Amounts in WPS Office
Question details
The user needs a repeatable workflow to assign U.S. states to six representatives while balancing both account counts and total dollar values, with optional geographic proximity considerations.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- A user has a list of U.S. states with account counts and dollar amounts and needs to divide the states into six balanced representative groups.
- Observed behavior
- The goal is to create balanced groups with approximately equal account counts and total dollar amounts instead of leaving the distribution uneven.
Create or open the worksheet that contains the state name, account count, and total dollar amount for each state. Make sure each state is in its own row and the dollar amount column is formatted as a number so sorting works correctly.
Assign states manually using a sorted round-robin method in WPS Spreadsheets
Use this method when you want a clear, adjustable assignment table and do not require a fully automated optimizer.
Sorting by dollar amount before assignment helps distribute the largest values evenly, and a round-robin pass gives each representative a similar number of high-value states. You can then fine-tune based on account counts or geographic proximity.
In WPS Spreadsheets, add columns for State, Account Count, Dollar Amount, and Assigned Representative, and fill in the state data.
Select the data range, click Data > Sort, choose the Dollar Amount column, set the order to Descending, and confirm the sort.
In the Assigned Representative column, assign the first state to Representative 1, the second to Representative 2, continue through Representative 6, and repeat until all states are assigned.
Use SUMIF formulas such as =SUMIF(D:D,"Representative 1",C:C) for dollar amounts and =COUNTIF(D:D,"Representative 1") for account counts in a summary area.
Compare the summary totals for the six representatives and manually change assignments in the D column until account counts and dollar totals are sufficiently close.

Automate the balancing with Solver in WPS Spreadsheets
Use this method for a fully automated optimization when the group is large or the balance targets are strict.
Balance Excel group assignments by accounts and dollar amounts with WPS Office Spreadsheets
WPS Office Spreadsheets gives you the sorting, formulas, and Solver-compatible tools to build a balanced state-to-representative assignment directly in your workbook. Use the same .xlsx file and familiar ribbon workflow without extra cost.
- 1. Download and install WPS Office: Download WPS Office from the official WPS site and install it on your computer.
- 2. Open the Excel workbook: Launch WPS Spreadsheets and open the .xlsx file containing the state, account count, and dollar amount data.
- 3. Create the assignment table and sort: Set up columns for State, Account Count, Dollar Amount, and Representative, then use Data > Sort to order states by dollar amount descending.
- 4. Calculate and balance the groups: Use COUNTIF and SUMIF formulas to total each representative's accounts and dollars, then reassign states or run Data > Solver for automated balancing.
- 5. Save for Excel sharing: Save the balanced workbook as an .xlsx file to keep it fully compatible with Microsoft Excel.

Frequently Asked Questions
Can I use WPS Spreadsheets to open and edit my Excel state assignment file?
Yes. Open the .xlsx file in WPS Spreadsheets and use the same sorting, formula, and Solver-compatible tools to edit the state assignment table.
How do I calculate totals for each representative in WPS Spreadsheets?
Use COUNTIF to count accounts and SUMIF to add dollar amounts for each representative, for example =COUNTIF(D:D,"Representative 1") and =SUMIF(D:D,"Representative 1",C:C).
Does WPS Office include Solver for automatic group balancing?
WPS Spreadsheets includes Solver-compatible data analysis tools in supported versions. Check the Data tab or add-in settings to enable it, then define an objective cell and assignment constraints.
How can I consider geographic proximity when balancing groups?
Sort or group by region before using the round-robin method, and when moving states between representatives, reassign adjacent or same-region states first to keep territories compact.
Will my final file remain compatible with Microsoft Excel?
Yes. Save the completed assignment workbook as .xlsx in WPS Office, and it will retain formulas, values, and structure for Microsoft Excel users.




