How to Sort Excel Rows by Total Score and Tie-Breaker Values
Question details
The user needs a way to sort a results table by total score and resolve ties using the counts of specific individual scores.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Ranking participants or items based on total scores and specific tie-breaking criteria (like the number of high scores) without altering the original column layout.
- Observed behavior
- Needs an accurate ranking method to prioritize tied rows based on the frequency of higher individual scores.
Ensure your data range has clear headers and does not contain merged cells, as merged cells will prevent the custom sorting tool from working correctly.
Use Helper Columns and Multi-Level Sort
The most straightforward and widely compatible method is to calculate tie-breaker counts in new helper columns and apply a custom multi-level sort.
By setting up helper columns, you can use standard functions to tally how many times a specific high score occurs in a row. Excel's Custom Sort feature can then read these columns to break ties systematically.
Create new columns to the right of your data for your tie-breakers, labeling them appropriately (e.g., 'Count of 9s', 'Count of 8.5s').
In the first cell of your new helper column, enter a formula like =COUNTIF(C2:P2, 9) to count the number of 9s in that specific row. Adjust the range to match your score columns.
Drag the fill handle down to apply this COUNTIF formula for all rows in your dataset. Repeat this process for any other tie-breaker columns (e.g., counting 8.5s).
Select your entire dataset, including the new helper columns. Navigate to the Data tab on the ribbon and click the 'Sort' button.
In the Sort dialog box, set the 'Sort by' dropdown to 'Total Score' and order it 'Largest to Smallest'. Click 'Add Level', select your 'Count of 9s' column, and set it to 'Largest to Smallest'. Add additional levels for remaining tie-breakers and click OK.

Use a Dynamic Array Formula (Excel 2021/365/2024)
If you are using a modern version of Excel, you can use a dynamic array formula to automatically sort and rank the data without manually creating helper columns.
Sort Data with Tie-Breakers in WPS Spreadsheet
WPS Spreadsheet provides powerful custom sorting tools and fully supports advanced statistical functions like COUNTIF, making it incredibly easy to rank complex datasets with multiple tie-breaking criteria.
- 1. Open your file: Launch WPS Spreadsheet and open the document containing your results table.
- 2. Create tie-breaker columns: Add blank columns next to your data and use the COUNTIF function to tally the specific scores used to break ties.
- 3. Access Custom Sort: Highlight your entire data range including the new columns, go to the 'Data' tab, and click 'Sort'.
- 4. Apply sorting levels: Set the primary sort key to your Total Score column (Descending), then add secondary levels for your tie-breaker columns (Descending), and click OK.

Frequently Asked Questions
Can I hide the helper columns after sorting my data?
Yes. Once you have sorted your data using the helper columns, you can select the columns, right-click the column letters at the top, and choose 'Hide'. The sorting order will remain intact while keeping your report tidy.
What if my tie-breaker criteria involve text instead of numbers?
The COUNTIF method works perfectly with text as well. Simply change the criteria in your formula to the specific text string, for example, =COUNTIF(C2:P2, "Pass"), and then sort by the resulting counts.
Will applying a multi-level sort change the order of my original columns?
No, sorting only rearranges the vertical order of the rows based on the values in the specified columns. The left-to-right order of your original columns remains completely unchanged.




