An advantage of the PERCENTILE function is that your data does not have to be sorted in ascending or descending order.
Suppose the data is stored in column B, rows 25 through 100, and we want the percentile.
The syntax of the function call is:
By adjusting the value of the second parameter, you can obtain any percentile you want.