RANK.EQ Function in Excel: Rank a Number in a List

⏱ 1 min readUpdated 28 September 2026

StatisticalLevel: IntermediateAvailable in: Excel 2010+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Related functions

RANK.EQ returns the position of a number in a list. Ties share the same rank.

Syntax

=RANK.EQ(number, ref, [order])
Argument What it means
order 0 or omitted = largest is 1; 1 = smallest is 1.

Examples

Example 1

=RANK.EQ(E2, $E$2:$E$50)

Sales rank, 1 = highest.

Example 2

=RANK.EQ(E2, $E$2:$E$50) + COUNTIF($E$2:E2, E2) - 1

Unique ranks even with ties.

LARGE · COUNTIFS · SORT

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong