How to Build a Nested Ranking System in WPS Office Spreadsheet
Question details
The user needs to create an automated ranking system for a football office pool that evaluates records using multiple ordered criteria: total points, wins, score difference, and a final tie-breaker.

- Product
- WPS Office Spreadsheet
- Device & OS
- not provided
- Scenario
- A user is managing a football office pool and wants the spreadsheet to rank participants automatically according to several performance criteria instead of manually comparing rows.
- Observed behavior
- The desired automated nested ranking is not yet implemented because the ranking rules and source columns are not clearly defined.
Before writing formulas, list every ranking rule in priority order and confirm that points, wins, and score difference are stored in separate columns with consistent numeric values.
Build the ranking with SORTBY using separate criterion columns
Use this method when each ranking criterion is already stored in its own column and you want a dynamic, formula-driven ranking that sorts records automatically.
WPS Office Spreadsheet supports dynamic array formulas such as SORTBY, which can sort one range by multiple key columns in a single formula. This is the cleanest way to apply nested ranking rules without adding manual helper columns.
Keep the criteria in descending priority order in the formula: total points first, wins second, score difference third, and your final tie-breaker last.
Open your WPS Office Spreadsheet and make sure each participant row has separate columns for Points, Wins, Score Difference, and Tie-breaker.
Click an empty cell where the sorted ranking table should start, such as G2.
Type =SORTBY(A2:D20, B2:B20, -1, C2:C20, -1, D2:D20, -1) and adjust the ranges to match your data columns, using -1 for descending order.
In the column next to the sorted output, enter =SEQUENCE(ROWS(G2#)) or =ROW()-1 to number the sorted records from 1 downward.

Create a manual ranking column with COUNTIFS tie-breaking
Use this approach when you need a visible rank number inside the original data layout and prefer a formula that does not rearrange the table.
Create a nested football pool ranking in WPS Office Spreadsheet
WPS Office Spreadsheet lets you build the automated nested ranking directly with SORTBY, SORT, or COUNTIFS. Prepare your points, wins, and score difference columns, apply the formula, and WPS will update the standings as values change.
- 1. Open your workbook: Launch WPS Office and open the football pool spreadsheet that contains the participant data.
- 2. Arrange ranking columns: Ensure every criterion, such as Points, Wins, and Score Difference, is in a separate column with the same numeric format.
- 3. Enter the SORTBY formula: Click an empty cell and enter =SORTBY(A2:D20, B2:B20, -1, C2:C20, -1, D2:D20, -1), replacing the ranges with your actual data.
- 4. Check the sorted standings: Review the formula output to confirm that records are ordered by points, then wins, then score difference.
- 5. Save the workbook: Press Ctrl+S to save the ranked workbook as a .xlsx file for sharing or further analysis.

Frequently Asked Questions
Can I use the Excel SORTBY formula in WPS Office?
Yes. WPS Office Spreadsheet supports dynamic array formulas such as SORTBY and SORT, so you can use the same multi-criteria sorting formulas as in Microsoft Excel.
How do I add a third or fourth tie-breaker to the ranking?
Add the extra column as another sort argument in SORTBY, or add another COUNTIFS level in the manual ranking formula. Keep the criteria in the same order as your ranking rules.
Why does my SORTBY formula return a #SPILL! error?
A #SPILL! error usually means the formula does not have enough empty cells for the sorted output. Clear all cells below and to the right of the formula, or move the formula to a larger blank area.
Does the ranking update automatically when points or wins change?
Yes. SORTBY and COUNTIFS formulas recalculate automatically when the source values change, so the standings and rank numbers update without manual sorting.
Can I keep the original row order and still show rank numbers?
Yes. Use the COUNTIFS ranking method in a new Rank column. It calculates a rank number for each row without moving or sorting the original data.




