ExcelFormulas logoExcelFormulas.
Ask AI
CompatibilityVerified QA Tested

RANK.

Returns the rank of a number in a list of numbers (Excel 2007 compatibility).

Category: Compatibility
ExcelExcel 365Excel 2021Excel 2019Google Sheets

How it works.

RANK calculates the position rank of a specific number within an array of numbers. Retained for backward compatibility with workbooks created prior to Excel 2010 (modern workbooks use RANK.EQ).

Formula syntax.

Standard Excel Notation
=RANK(number, ref, [order])
Tip:Arguments wrapped in square brackets [like_this] are optional; all other arguments are required.

Formula arguments.

Every parameter accepted by the RANK function is detailed below.

numberRequired

The value whose rank you want to find.

Example value: B2
refRequired

The cohort range to rank against.

Example value: $B$2:$B$5
orderOptional

0 = Descending (largest is #1, default), 1 = Ascending.

Default: 0

Simple example.

Step-by-Step Scenario

Class Exam - Student Ranking

Rank student scores from highest to lowest.

StudentExam ScoreClass Rank
Emma95—
Liam82—
Noah88—
Applied Formula
=RANK(B2, $B$2:$B$5, 0)
Expected Result:1

Evaluates RANK over the sample table cells, placing the verified output in cell C2.

Formula generator.

Full Generator Wizard

Customize the argument fields below to generate a tailored RANK formula ready to paste directly into your worksheet.

Generated FormulaReady to copy

Expected result behavior.

Returns number 1 based on sample evaluation criteria and active cell references.

Sample Output:1
Output Type:Numeric (Double/Integer)

Best Practices

  • Lock the ref range ($B$2:$B$5) with dollar signs before copying down a column.

Common Mistakes

  • Tied numbers receive identical ranks and skip subsequent ranks (e.g. two #2s are followed by #4).
Compatibility Database

Platform & version compatibility.

Verified platform compatibility matrix based on actual spreadsheet calculation engine specifications.

Excel✓
Supported
Excel 365✓
Supported
Excel 2021✓
Supported
Excel 2019✓
Supported
Google Sheets✓
Supported
Microsoft Excel History & Version Availability

Core standard function supported across all modern and legacy Microsoft Excel versions (365, 2021, 2019, 2016, 2013, 2010), as well as Excel for the Web and Mac.

Google Sheets Compatibility Notes

100% compatible with Google Sheets. Uses identical argument order, data types, and standard calculation logic.

Frequently asked questions.

Technical Q&A
Can I use RANK across different worksheets in Excel?↓

Yes. You can reference cells located on other sheets by including the sheet name followed by an exclamation mark, for example: =RANK(Sheet2!A2:A10). If the sheet name contains spaces, enclose it in single quotes: ='Q1 Report'!A2:A10.

What is the most common reason for errors in RANK?↓

Tied numbers receive identical ranks and skip subsequent ranks (e.g. two #2s are followed by #4).

Does RANK work identically in Google Sheets?↓

Yes, RANK is supported in both Microsoft Excel and Google Sheets with standard evaluation behavior.