RANK.EQ Function

Excel Functions › Statistical

Excel 2010+ Statistical

The Excel RANK.EQ function returns the rank of a number within a list of numbers. When values tie, each one receives the same top rank — the behaviour of the classic RANK function.


Quick answer:
=RANK.EQ(5,{8,5,5,2,1}) 5 ties for the 2nd spot = rank 2

Syntax

=RANK.EQ(number, ref, [order])
ArgumentDescription
numberRequiredThe value whose rank you want to find.
refRequiredThe array or range of numbers to rank against. Non-numeric values are ignored.
orderOptional0 or omitted = descending (largest is rank 1); any non-zero value = ascending (smallest is rank 1).

How to use it

RANK.EQ ranks a value against a set of numbers, defaulting to descending order — the largest number is rank 1.

=RANK.EQ(8,{8,5,5,2,1}) // largest = rank 1
=RANK.EQ(5,{8,5,5,2,1}) // both 5s share rank 2

When numbers tie, RANK.EQ gives each the highest rank in the tied group, then skips the next rank(s). Here both 5s are rank 2, and the next value (2) is rank 4 — rank 3 is skipped.

=RANK.EQ(2,{8,5,5,2,1}) // rank 3 skipped = rank 4

Need fractional ties? RANK.AVG returns the average rank for tied values (2.5 instead of 2 here), which is better for percentile-style scoring.

Try it: interactive demo

Live demo

Pick a RANK.EQ example to see the formula and its result.

Result:

Practice workbook

📊
Download the free RANK.EQ practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

How does RANK.EQ handle ties?
Every tied value gets the same highest rank in the group, and the following rank numbers are skipped. Two values tied for 2nd are both rank 2, and the next value becomes rank 4.
What is the difference between RANK.EQ and RANK.AVG?
RANK.EQ gives tied values the same top rank (2 and 2); RANK.AVG averages the positions they would occupy (2.5 each). Both were introduced in Excel 2010 to replace the single legacy RANK function.
Is RANK.EQ the same as the old RANK function?
Yes — RANK.EQ produces identical results to the classic RANK. RANK is retained in the Compatibility category for older workbooks.
How do I rank from smallest to largest?
Add a non-zero third argument: =RANK.EQ(number, ref, 1) ranks ascending so the smallest value is rank 1.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: RANK.AVG · LARGE · SMALL · PERCENTRANK.INC · MEDIAN