The Excel PERCENTILE Function
PERCENTILE & PERCENTILE.INC Functions
In Excel 2010, the PERCENTILE function has been renamed the PERCENTILE.INC function.
Although it has been replaced, the Percentile function is still available in current versions of Excel (stored in the list of compatibility functions), to allow compatibility with earlier versions of Excel.
The Excel Percentile function returns the k'th percentile (i.e. the value below which k% of the data values fall) for a supplied range of values and a supplied k.
The syntax of the function is:
PERCENTILE( array, k )
Where the function arguments are:
|array||-||The array 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
Column B of the spreadsheet below shows four examples of the Excel Percentile function, used to calculate the k'th percentile of the set of values in cells A1-A6. In each case, a different value of k is specified.
|1||2||=PERCENTILE( A1:A6, 0.2 )|
|2||1||=PERCENTILE( A1:A6, 60% )|
|3||6||=PERCENTILE( A1:A6, 50% )|
|4||4||=PERCENTILE( A1:A6, 95% )|
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 half way between the values of 3 and 4. Therefore, Excel has interpolated, to produce the result 3.5;
- The 95th percentile (see cell B4) falls 75% of the way between the values of 5 and 6. Therefore, Excel has interpolated, to produce the result 5.75.
See the Microsoft Office website for further examples of the Excel Percentile function.
Percentile Function Errors
If you get an error from the Excel Percentile function this is likely to be one of the following:
Occurs if either:
- The supplied value of k is less than 0 or greater than 1.
- The supplied array is empty.
|#VALUE!||-||Occurs if the supplied value of k is non-numeric.|