Google Sheets RANK.AVG Function: Syntax, Examples & Tips

The RANK.AVG function calculates the average rank of a number in a dataset, accounting for ties by averaging their ranks.
Google Sheets
RANK.AVG(value, data, [is_ascending])

One free generation or explanation per browser, shared across Excel and Google Sheets. Account usage limits apply afterward.

On this page
  1. Parameters
  2. What is RANK.AVG?
  3. A Practical Example
  4. RANK.AVG Formula
  5. Result of the Formula
  6. Why Use RANK.AVG?
  7. Key Takeaways:
  8. Example use case

Parameters

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.

What is RANK.AVG?

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.

A Practical Example

Imagine you are tracking the scores of students in a class:

Scores Table:

StudentNameScore
Alice85
Bob92
Charlie85
David78
Eva92

You want to find out the rank of each student's score, where the highest score gets the top rank.

RANK.AVG Formula

To achieve this, you would use the RANK.AVG function as follows:

Google Sheets
=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).

Result of the Formula

When you apply the RANK.AVG formula to the Scores Table, the output would look like this:

StudentNameScoreRank
Alice853.5
Bob921
Charlie853.5
David785
Eva921

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.

Why Use RANK.AVG?

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.

Key Takeaways:

  • RANK.AVG: A function that ranks a number in a dataset and averages ranks for duplicates.
  • User-Friendly: Simplifies the process of ranking data without the need for complex calculations.
  • Useful for Analysis: Ideal for performance tracking, competition results, and any scenario where ranking is necessary.
  • Handles Duplicates: Provides a fair ranking system by averaging ranks for tied values.

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!

Example use case

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.

Need more help with Google Sheets formulas?

Sign up for Better Analyst and get unlimited AI-powered formula generation, explanations, and advanced data analysis.

Explore all Google Sheets formulas

Browse our complete library of Google Sheets formula guides

Compare your options

Decide with evidence, not a sales pitch.

Open a neutral research prompt in the AI tool you already use. Compare capabilities, limitations, and fit before you choose.

  1. 01ChatGPTOpen a balanced comparison prompt in ChatGPT.
  2. 02ClaudeOpen the same research prompt in Claude.
  3. 03PerplexityResearch the comparison with linked web sources.

AI answers can be incomplete. Check source links, current pricing, and product documentation before deciding.