TX Sheet Control

RANK.EQ Function

Function

Return the rank of a number in a list of numbers, with the top rank for equal 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 share the highest of their ranks, so RANK.EQ(2,{1,2,2,3}) returns 2. A number that isn't in the list returns #N/A.

Syntax

RANK.EQ(number, ref, order)

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

Available for supported offline calculation.

Examples

=RANK.EQ(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