The Excel PERCENTILE function returns the k’th percentile of a supplied range of values for a given value of k.
Syntax: PERCENTILE( array, k )
Where the function arguments are:
|array||–||The range of data values for which you want to calculate the k’th percentile|
|k||–||The value (between 0 and 1) of the required percentile|
Percentile Function Examples
The spreadsheets below show examples of the Excel Percentile function used to calculate the k’th percentile of a set of values in cells A1 – A6 of the sample spreadsheet, for different values of k. The formulas for the functions are shown in the spreadsheet on the left, and the results are shown in the spreadsheet on the right.
Note that in the above examples:
- The value of k can be input as a decimal or a percentage – for example, value 0.2 in cell B1, is the same as 20%, – the 20th percentile
- The 50th percentile (see cell B3) falls between the values of 3 and 4. Therefore, Excel has interpolated, to produce the result 3.5
Percentile Function Errors
If you get an error from the Excel Percentile function this is likely to be one of the following:
|#NUM!||–||Occurs if the supplied value of k is less than 0 or greater than 1|
|#VALUE!||–||Occurs if the supplied value of k is non-numeric|