The RANK function

Returns the rank of a number in a list, 1 for the largest by default. Equal numbers share a rank.

Syntax

RANK(number, ref, [order])
number
The number to rank.
ref
The list of numbers to rank it in.
order (optional)
0 or left out to rank from the largest, 1 to rank from the smallest.

Examples

D1=RANK(B3,B2:B6)
ABCD
1StoreSales2
2North1840
3Harbor2215
4Station1675
5Market2490
6Riverside1320

In plain words: Where the sales in B3 rank among all the sales in B2:B6, largest first.

D1=RANK(B3,B2:B6,1)
ABCD
1StoreSales4
2North1840
3Harbor2215
4Station1675
5Market2490
6Riverside1320

Questions

Should I use RANK or RANK.EQ?

They give the same result. RANK.EQ is the newer name in Excel; RANK still works everywhere, including Google Sheets.

Related functions