Function · Ranking and percentiles

Excel RANK.EQ function

The Excel RANK.EQ function returns the rank of a number in a list. March's $118.45 is 2nd of the four utility bills. Ties share the better rank.

Excel 2010 and later, including Microsoft 365 and Excel for the web. The older name RANK still calculates. Also in Google Sheets.

Syntax =RANK.EQ(number, ref, [order])

RANK.EQ
=RANK.EQ(B4,B2:B5,0)

Arguments

NameRequiredWhat to pass
numberRequiredThe value to rank. It should be one of the numbers in ref.
refRequiredThe list. Text and blanks are ignored.
orderOptional0 or omitted ranks from largest to smallest, so the biggest bill is 1. Any other number ranks from smallest to largest.

Examples

Where March sits among the four bills

=RANK.EQ(B4,B2:B5,0)

Result 2

=RANK.EQ(B4,B2:B5,0)B6
Utilities
AB
1MonthBill
2Jan143.60
3Feb96.20
4Mar118.45
5Apr88.10
6Rank of March2
A picture of the sheet, not a live calculator. B4 is March. The rank cell is outside the list, so it is not ranked as a bill.

RANK.EQ says where one number sits. March’s $118.45 is the second of the four bills when the largest is in first place, so the rank is 2. January’s $143.60 is 1. Order 0, or leaving order out, ranks that way. Pass 1 and the smallest bill becomes rank 1, which is a different question.

A tie takes the better rank and the next rank is skipped. Two bills of $118.45 would both be rank 2, and the next bill would be rank 4. RANK.AVG would give the ties 2.5 instead. The value in second place, rather than the place of a known value, is LARGE. Excel 2010 added the .EQ name. The older RANK is still accepted and still breaks ties the same way.