PERCRANK function
Description
PERCRANK(x,range) returns the percentile rank of a value in a sample given by the specified range.
In the absence of ties in the data, this function is the inverse of the PERCENTILE function.
The argument range can be a list of numbers, cell addresses, cell ranges (such as A1:A10).
Range can also be a matrix. In that case the function returns a matrix with one row and the same number of columns, with each element the PERCRANK of the corresponding column. If range is a row matrix, it is converted to a column matrix first.