ReferenceFunctionsStatistics Functions
RANK.EQ
RANK.EQ: Returns the rank position of a number within a data set, with ties sharing the same rank.
Summary
RANK.EQ defaults to descending order (largest value is rank 1), and can switch to ascending
order when order is non-zero.
Remarks
- Omitting
order, or settingorderto0, ranks values in descending order. - Any non-zero
orderranks values in ascending order. - Tied values receive the same rank (the first matching position in the sorted list).
- Returns
#N/Aifnumberis not found inref.
Examples
Descending rank with direct values
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
2
Ascending rank with ties in a range
Grid
| Cell | Value | |
|---|---|---|
Formula
=
Result
Not evaluated yet.
Expected
3
Related functions
FAQ
When does RANK.EQ return #N/A?
It returns #N/A when the target number does not appear in the reference set.
Runtime metadata
Category
Statistics
Signature
RANK.EQ(arg1, arg2, ... argN: Number (Range))This function accepts a repeating argument pattern (min args: 2).
Arity
min 2, max variadic
Arguments
arg1Number · Range · coercion NumberLenientText
Caps
PURENUMERIC_ONLY
Source