TX Sheet Control

RANK Function

Function

Return the rank of a number in a list of numbers. number is the number to rank and ref the list; order 0 or omitted ranks in descending order, with the largest number as 1, and any other value in ascending order. Equal numbers get the same rank, and a number that isn't in the list returns #N/A. RANK calculates the same as RANK.EQ.

Syntax

RANK(number, ref, order)

Category: Statistics. Minimum arguments: 2. Maximum arguments: 3.

Available for supported offline calculation.

Examples

=RANK(3,A1:A5)

When A1:A5 holds the values 1 to 5, the formula returns 3: 3 is the third largest value.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also