Wauvel

Excel like a finance pro.

← The library

Statistical function

RANK.EQ

Returns the rank of a number in a list; ties share the top rank.

Very commonDifficulty 1100 · ProficientUsage rank #66 of 520
Practice · 14 questions →

When to use it

The rank of a number within a list: 1 for the largest by default, or the smallest with a non-zero order argument. Ties share the same rank and the next rank is skipped.

The shape of it

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

Worked examples

  • Tied values

    =RANK.EQ(85,{70,85,90,85}) 2

    Two scores of 85 both rank 2; nothing ranks 3.

  • Ascending order

    =RANK.EQ(70,{70,85,90,85},1) 1

    Ascending: the smallest is rank 1.

  • Rank a column

    =RANK.EQ(B2,$B$2:$B$20) 7

    Copied down, ranks every row against the whole column.

Worth knowing

  • Order 0 or omitted is descending (largest is 1); 1 is ascending.
  • Break ties by adding a tiny secondary key: =RANK.EQ(B2,$B$2:$B$20)+COUNTIF($B$2:B2,B2)-1.
  • RANK.AVG gives tied values the average of the ranks they span.
  • Lock the reference range with $ before copying.

Where it goes wrong

  • #N/A when the number is not in the list.
  • Skipped ranks after ties surprise people expecting 1, 2, 3.

Related

Learn the moves here — or let Wauvel run them on your numbers.

Meet your AI CFO →

One CFO-grade Excel tip a week

A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.