Syntax
=RANK(number, ref, [order])Arguments
| Argument | Required | Description |
|---|---|---|
number | Required | The number to rank |
ref | Required | The list of numbers |
order | Optional | 0 or left out for descending, any other number for ascending |
How to use RANK
RANK is kept so older workbooks keep working. It calculates the same way as RANK.EQ, which is the name to use in new formulas.
RANK takes 2 required arguments and 1 optional argument. Type =RANK( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=RANK(2, {7,3.5,3.5,1,2})Result Related compatibility functions
- PERCENTILEReturns the k-th percentile of the values (older name of PERCENTILE.INC).
- PERCENTRANKReturns the percentage rank of a value in a data set (older name of PERCENTRANK.INC).
- POISSONReturns the Poisson distribution (older name of POISSON.DIST).
- QUARTILEReturns a quartile of the values (older name of QUARTILE.INC).
- STDEVEstimates the standard deviation from a sample (older name of STDEV.S).
- STDEVPReturns the population standard deviation (older name of STDEV.P).
- TDISTReturns the one or two tailed Student's t distribution (older form of T.DIST.RT and T.DIST.2T).
- TINVReturns the two tailed inverse of the Student's t distribution (older name of T.INV.2T).
- TTESTReturns the probability of a Student's t test (older name of T.TEST).