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

The RANK.EQ function assigns a rank to a number in a dataset, with equal values receiving the same rank.
Google Sheets
RANK.EQ(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.EQ?
  3. A Practical Example
  4. RANK.EQ Formula
  5. Result of the Formula
  6. Why Use RANK.EQ?
  7. Key Takeaways:
  8. Example use case

Parameters

value:
The number or cell reference for which you want to find the 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.

What is RANK.EQ?

The RANK.EQ function in Google Sheets is a statistical tool used to determine the rank of a specific value within a dataset. It assigns a rank to each number in a list, with the highest number receiving a rank of 1. If there are duplicate values, they will receive the same rank, and the next rank will be skipped. This function is particularly useful for comparing scores, sales figures, or any numerical data where ranking is required.

In simpler terms, RANK.EQ allows you to see how a particular value stands in relation to others in a dataset.

A Practical Example

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

Scores Table:

StudentNameScore
Alice85
Bob92
Charlie85
David78
Eva95

You want to rank the students based on their scores.

RANK.EQ Formula

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

Google Sheets
=RANK.EQ(B2, $B$2:$B$6, 0)

In this formula:

  • B2 is the cell containing the Score for the student you want to rank.
  • $B$2:$B$6 is the range of scores you are evaluating.
  • 0 indicates that you want to rank in descending order (highest score gets rank 1).

Result of the Formula

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

StudentNameScoreRank
Alice853
Bob922
Charlie853
David785
Eva951

In this case, both Alice and Charlie have the same score of 85, so they both receive a rank of 3, while the next rank (4) is skipped.

Why Use RANK.EQ?

RANK.EQ is beneficial because it provides a straightforward way to rank data without the need for complex calculations. It helps in quickly identifying top performers or lowest scores in a dataset. Additionally, it can be used in conjunction with other functions to create more comprehensive analyses.

Key Takeaways:

  • RANK.EQ: A Google Sheets function that ranks a number within a dataset.
  • Handling Duplicates: Assigns the same rank to duplicate values and skips the next rank.
  • Descending Order: Can rank data in descending order, making it easy to identify top values.
  • Common Use Cases: Ideal for ranking scores, sales figures, or any numerical data where comparison is needed.

RANK.EQ is an essential function for anyone working with numerical data in Google Sheets, providing a simple yet effective way to analyze and present rankings.

Happy spreadsheeting!

Example use case

You have a table with student names in Column A and their test scores in Column B. You can use RANK.EQ to determine each student's rank based on their score, allowing for quick identification of top performers and facilitating competition analysis.

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.