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.
Syntax =RANK.EQ(number, ref, [order])
=RANK.EQ(B4,B2:B5,0)Arguments
| Name | Required | What to pass |
|---|---|---|
| number | Required | The value to rank. It should be one of the numbers in ref. |
| ref | Required | The list. Text and blanks are ignored. |
| order | Optional | 0 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
| A | B | |
|---|---|---|
| 1 | Month | Bill |
| 2 | Jan | 143.60 |
| 3 | Feb | 96.20 |
| 4 | Mar | 118.45 |
| 5 | Apr | 88.10 |
| 6 | Rank of March | 2 |
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.