Google Sheets RANK Function: Syntax, Examples & Tips

The RANK function assigns a rank to a number in a dataset, based on its value relative to others, allowing for ties in ranking.
Google Sheets
RANK(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 the RANK Function?
  3. A Practical Example
  4. RANK Formula
  5. Result of the Formula
  6. Why Use RANK?
  7. Key Takeaways:
  8. Example use case

Parameters

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.

What is the RANK Function?

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.

A Practical Example

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

Scores Table:

StudentIDStudentNameScore
1Alice85
2Bob92
3Charlie78
4David88
5Eva92

You want to find out the rank of each student's score in the class.

RANK Formula

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

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

Result of the Formula

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

StudentIDStudentNameScoreRank
1Alice854
2Bob921
3Charlie785
4David883
5Eva921

In this case, both Bob and Eva have the highest score of 92, so they share the top rank.

Why Use 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.

Key Takeaways:

  • RANK: A function that determines the rank of a number in a dataset based on its size.
  • Versatile: Can be used in various contexts, including education, sales, and sports.
  • Easy to Use: Simplifies the ranking process without requiring complex formulas.
  • Common Use Cases: Ideal for grading systems, performance evaluations, and comparative analysis.

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!

Example use case

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.

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.