RANK.AVG(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 whose rank you want to determine within the specified data range.
data:
The range of cells that contains the values to be ranked 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.AVG function in Google Sheets is a statistical tool used to determine the rank of a number within a dataset. It calculates the rank of a specific value in a list of numbers, and if there are duplicate values, it assigns the average rank to those duplicates. This function is particularly useful for ranking scores, sales figures, or any numerical data where you want to understand the relative position of a value compared to others.
In simpler terms, RANK.AVG allows you to see how a specific number compares to a group of numbers, giving you insight into its standing within that group.
Imagine you are tracking the scores of students in a class:
| StudentName | Score |
|---|---|
| Alice | 85 |
| Bob | 92 |
| Charlie | 85 |
| David | 78 |
| Eva | 92 |
You want to find out the rank of each student's score, where the highest score gets the top rank.
To achieve this, you would use the RANK.AVG function as follows:
=RANK.AVG(B2, $B$2:$B$6, 0)In this formula:
B2 is the cell containing the Score for the student whose rank you want to find.$B$2:$B$6 is the range of scores for all students.0 indicates that the ranking should be in descending order (highest score gets rank 1).When you apply the RANK.AVG formula to the Scores Table, the output would look like this:
| StudentName | Score | Rank |
|---|---|---|
| Alice | 85 | 3.5 |
| Bob | 92 | 1 |
| Charlie | 85 | 3.5 |
| David | 78 | 5 |
| Eva | 92 | 1 |
In this case, both Alice and Charlie scored 85, so they share the average rank of 3.5. Bob, with a score of 92, is ranked 1, and David, with a score of 78, is ranked 5.
RANK.AVG is beneficial because it provides a clear understanding of how values compare within a dataset, especially when dealing with duplicates. It simplifies the ranking process and allows for a more nuanced view of data, making it easier to analyze performance or results.
RANK.AVG is an essential function for anyone working with numerical data in Google Sheets, providing a powerful way to analyze and interpret data rankings effectively.
Happy spreadsheeting!
You have a table with student scores in Column A. Use RANK.AVG to determine each student's rank based on their score. This helps identify top performers and ensures fair ranking when multiple students have the same score, enhancing academic assessments.
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.