# MS Excel: PERCENTILE Function (WS)

This Excel tutorial explains how to use the Excel PERCENTILE function with syntax and examples.

## Description

The Microsoft Excel PERCENTILE function returns the nth percentile from a set of values.

## Syntax

The syntax for the Microsoft Excel PERCENTILE function is:

`PERCENTILE( array, nth_percentile )`

### Parameters or Arguments

array is a range or array from which you want to return the nth percentile.

nth_percentile is the percentile value. It can be a value between 0 and 1.

## Note

• If nth_percentile is not a numeric value, the PERCENTILE function will return the #VALUE! error.
• If nth_percentile is a value greater than 1 or less than 0, the PERCENTILE function will return the #NUM! error.

## Applies To

The PERCENTILE function can be used in the following versions of Microsoft Excel:

• Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

## Type of Excel Function

The PERCENTILE function can be used in Microsoft Excel as the following type of function:

• Worksheet function (WS)

## Example (as Worksheet Function)

Let's look at some Excel PERCENTILE function examples and explore how to use the PERCENTILE function as a worksheet function in Microsoft Excel:

Based on the spreadsheet above, the following Excel PERCENTILE examples would return:

```=PERCENTILE(A2:A6, 0.5)
Result: 8.1

=PERCENTILE(A2:A6, 0.8)
Result: 48.4

=PERCENTILE({1,2,3,4}, 0.8)
Result: 3.4

=PERCENTILE({1,2,3,4}, 0.75)
Result: 3.25

=PERCENTILE({7,8,9,20}, 0.35)
Result: 8.05```
Share: