SheetRocks
Documentation/Formulas/RANK

RANK

Returns the rank of a number from the list of other numeric values

Syntax

RANK(number, ref, [order])

Arguments

Argument Description Required
number The number whose rank to find Required
ref An array or a reference that contains numbers to rank against Required
order A number that decides whether to rank in ascending or descending order Optional

Examples

Rank in descending order (default)

=RANK(90, A1:A5)
Result ⇒ 2
A
1 85
2 90
3 78
4 92
5 88

Rank in ascending order

=RANK(30, A1:A5, 1)
Result ⇒ 3
A
1 10
2 20
3 30
4 40
5 50

Find student ranking

=RANK(92, A1:A5)
Result ⇒ 2
A
1 95
2 87
3 92
4 78
5 88

Related Functions

Other Statistical functions:


← Back to Formula Reference