RANK(value, data, [is_ascending])One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.
value:
The number or cell reference that you want to rank within the specified data range.
data:
The range of cells that contains the values you want to rank against.
is_ascending:
An optional parameter that determines the ranking order. If TRUE or omitted, ranks in ascending order; if FALSE, ranks in descending order.
The RANK function in Google Sheets is a useful tool that allows you to determine the rank of a specific value within a dataset. It assigns a rank to a number based on its size relative to other numbers in the list. This function is particularly helpful in scenarios where you want to compare values and understand their relative positions, such as in grading systems, sales performance, or sports rankings.
In simpler terms, RANK helps you find out how a particular value stands in comparison to others in a dataset.
Imagine you are managing the scores of students in a class:
| StudentID | StudentName | Score |
|---|---|---|
| 1 | Alice | 85 |
| 2 | Bob | 92 |
| 3 | Charlie | 78 |
| 4 | David | 88 |
| 5 | Eva | 92 |
You want to find out the rank of each student's score in the class.
To achieve this, you would use the RANK function as follows:
=RANK(C2, C$2:C$6, 0)In this formula:
C2 is the cell containing the Score for the student whose rank you want to determine.C$2:C$6 is the range of scores for all students. The dollar signs ($) are used to create an absolute reference, ensuring that the range remains constant when you copy the formula to other cells.0 indicates that the ranking should be in descending order (higher scores get a higher rank).When you apply the RANK formula to the Scores Table, the output would look like this:
| StudentID | StudentName | Score | Rank |
|---|---|---|---|
| 1 | Alice | 85 | 4 |
| 2 | Bob | 92 | 1 |
| 3 | Charlie | 78 | 5 |
| 4 | David | 88 | 3 |
| 5 | Eva | 92 | 1 |
In this case, both Bob and Eva have the highest score of 92, so they share the top rank.
RANK is beneficial because it provides a straightforward way to compare values and understand their relative standings. It simplifies the process of ranking data without the need for complex calculations or additional sorting. This function is particularly useful in educational settings, competitive environments, and any situation where ranking is necessary.
RANK is an essential function for anyone working with numerical data in Google Sheets, providing a powerful way to analyze and present data effectively.
Happy spreadsheeting!
You have a table with student names in Column A and their test scores in Column B. Use the RANK formula to assign ranks based on scores, allowing you to quickly identify top performers and track student progress in a clear, organized manner.
Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.
Browse our complete library of Google Sheets formula guides
Compare your options
Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.
AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.