Returns the rank of a specified value in a data set.
Sample usage
RANK(A2,A2:A100)
RANK(4,A2:A100,1)
Syntax
RANK(value, data, [is_ascending])
-
value
– The value whose rank will be determined.- If
data
does not contain value in any cell or element, RANK will return the #N/A error.
- If
-
data
– The array or range containing the data set to consider. -
is_ascending
– [ OPTIONAL – 0 by default ] Whether to consider the values in data in descending or ascending order.- If this is
0
, the greatest value in data will have rank 1; if this is 1, the least value in data will have rank 1.
- If this is
See also
SMALL
: Returns the nth smallest element from a data set, where n is user-defined.
QUARTILE
: Returns a value nearest to a specified quartile of a data set.
PERCENTRANK
: Returns the percentage rank (percentile) of a specified value in a data set.
PERCENTILE
: Returns the value at a given percentile of a data set.
MINA
: Returns the minimum numerical value in a data set.
MIN
: Returns the minimum value in a numerical data set.
MEDIAN
: Returns the median value in a numerical data set.
MAXA
: Returns the maximum numerical value in a data set.
MAX
: Returns the maximum value in a numerical data set.
LARGE
: Returns the nth largest element from a data set, where n is user-defined.
AVERAGEA
: Returns the numerical average value in a data set.
AVERAGE
: The AVERAGE function returns the numerical average value in a dataset, ignoring text.