RANK.EQ Function
Ranks a value in a list; ties share a rank and the next rank is skipped.
Syntax
Parameters
| Parameter | Description | Required |
|---|---|---|
| number | The value whose rank you want to find. | Required |
| ref | The list (range or array) of numbers to rank against. | Required |
| order | Optional. 0 or omitted = descending (largest = rank 1); any nonzero value = ascending (smallest = rank 1). | Optional |
Basic Example
Rank of 20 when it appears twice
=RANK.EQ(20, {10,20,20,30})The two 20s are the 2nd and 3rd largest, so both receive rank 2.
Advanced Examples
Example 1: Ties skip the next rank
Ranking the largest value after a tieBecause two values share rank 2, the following distinct value jumps to rank 4.
=RANK.EQ(30, {10,20,20,30})Example 2: Ascending ranking with a tie
Smallest-first orderingWith order = 1 the smallest value is rank 1 and ties still share a rank.
=RANK.EQ(20, {10,20,20,30}, 1)How RANK.EQ Works
RANK.EQ compares a value to the numbers in the reference. By default (order 0) the largest value gets rank 1; order 1 ranks smallest to largest. Equal values are given the same rank, and the following rank is incremented past the tie (so two values at rank 2 leave the next value at rank 4). It is functionally identical to the legacy RANK and returns #N/A if the value is not found.
Important Notes & Limitations
Ties share a rank and subsequent ranks are skipped, which can distort rank-based statistics.
Cannot produce averaged ranks for ties; use RANK.AVG for that.
Only ranks against numbers; text in the reference is ignored.
Common Errors & Fixes
#N/A errorThe number is not present in the reference list.Fix: Confirm the value exists in the range you are ranking against.
Ranking seems off by directionOmitting order defaults to descending.Fix: Pass 1 as the third argument to rank ascending.
Download Practice File
RANK.EQ
rank-eqPractice RANK.EQ with Real Data
Download a sample CSV file with pre-populated data and practice exercises for the RANK.EQ function. Works in both Excel and Google Sheets.
File format: CSV (comma-separated values) - opens in Excel, Google Sheets, and all spreadsheet apps