Table of Contents
The process of ranking items in Google Sheets by multiple columns involves using the “Sort Range” feature to organize data based on specific criteria. This can be done by selecting the columns to be ranked, choosing a sort order, and applying the sort to the selected range of data. This allows for a more comprehensive and precise ranking of items, taking into consideration multiple factors. By utilizing this feature, users can effectively and efficiently organize their data and retrieve relevant information from their spreadsheet.
Google Sheets: Rank Items by Multiple Columns
You can use the following syntax to rank items by multiple columns in Google Sheets:
=RANK(B2,$B$2:$B$11)+SUMPRODUCT(--($B$2:$B$11=$B2),--(C2<$C$2:$C$11))This particular formula ranks items in descending order first by the values in column B, then by the values in column C.
The following example shows how to use this formula in practice.
Example: Rank Items by Multiple Columns in Google Sheets
Suppose we have the following dataset in Google Sheets that shows the points and assists for 10 different basketball players:

Now suppose we’d like to rank these players from best to worst, assigning a value of “1” to the best player and “10” to the worst player.
We’ll rank the players from best to worst based on the value in the Points column. If there are ties, we’ll then refer to the value in the Assists column.
We’ll use the following formula to rank the players:
=RANK(B2,$B$2:$B$11)+SUMPRODUCT(--($B$2:$B$11=$B2),--(C2<$C$2:$C$11))The following screenshot shows how to use this formula in practice:

The player with a ranking of 1 is considered the best and the player with a ranking of 10 is considered the worst.
Here’s how our formula worked:
- Rank the players from best to worst based on the value in the Points column.
- If there are ties, refer to the value in the Assists column.
For example, players A and B tied for having the most points. However, player A had more assists so they received a ranking of 1 and player B received a ranking of 2.
If you’d like to rank the players in ascending order (1=worst, 10 =best) then we can use the following formula:
=RANK(B2,$B$2:$B$11, 1)+SUMPRODUCT(--($B$2:$B$11=$B2),--(C2<$C$2:$C$11))+1The following screenshot shows how to use this formula in practice:

The “best” player now has a ranking of 10 and the “worst” player has a ranking of 1.
Additional Resources
Cite this article
stats writer (2024). How can I rank items in Google Sheets by multiple columns?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-rank-items-in-google-sheets-by-multiple-columns/
stats writer. "How can I rank items in Google Sheets by multiple columns?." PSYCHOLOGICAL SCALES, 1 Jul. 2024, https://scales.arabpsychology.com/stats/how-can-i-rank-items-in-google-sheets-by-multiple-columns/.
stats writer. "How can I rank items in Google Sheets by multiple columns?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-rank-items-in-google-sheets-by-multiple-columns/.
stats writer (2024) 'How can I rank items in Google Sheets by multiple columns?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-rank-items-in-google-sheets-by-multiple-columns/.
[1] stats writer, "How can I rank items in Google Sheets by multiple columns?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, July, 2024.
stats writer. How can I rank items in Google Sheets by multiple columns?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
