SpreadJS Documentation > Formula Reference > Formula Functions > PERCENTILE |
This function returns the nth percentile of values in a range.
PERCENTILE(array,n)
This function has these arguments:
Argument | Description |
---|---|
array | Array of values representing the data |
n | Value representing the percentile value between 0 and 1 |
Accepts numeric data for both arguments. Returns numeric data.
PERCENTILE(A1:A12,0.95)
PERCENTILE(R1C1:R1C45,0.866)
PERCENTILE({5,15,25,50,65},0.45) gives the result 23