Category: FUNCTION | Updated: 2026-11-22

How to Use the PERCENTILE Function | Find the Percentile of a Dataset

How to Use the PERCENTILE Function

The PERCENTILE function sorts data from smallest to largest and returns the value at a specified percentage (percentile between 0 and 1) from the bottom. It is used to calculate score thresholds or cutoff lines for the top X%.

Syntax

=PERCENTILE(data, percentile)
  • data: The cell range containing the dataset to consider (required).
  • percentile: A decimal between 0 and 1 inclusive (required). For example, enter 0.8 (or 80%) for the 80th percentile.

Example with a Table

Here is an example of finding various percentile values from five numeric data points (10, 20, 30, 40, 50).

Data Percentile Formula Result Explanation
10 0 =PERCENTILE($A$2:$A$6, B2) 10 0% (same as the minimum value)
20 0.25 =PERCENTILE($A$2:$A$6, B3) 20 25th percentile
30 0.5 =PERCENTILE($A$2:$A$6, B4) 30 50th percentile (median)
40 0.8 =PERCENTILE($A$2:$A$6, B5) 42 80th percentile (interpolated)
50 1 =PERCENTILE($A$2:$A$6, B6) 50 100% (same as the maximum value)

Common Errors and Notes

  • #NUM! Error: Occurs if the second argument (percentile) is less than 0 or greater than 1 (e.g., entering 80 directly). Always specify 0.8 or 80%.
  • #VALUE! Error: Occurs if a non-numeric text value is passed as an argument.

Frequently Asked Questions

Q. What happens when you specify 0.5 for the percentile?

A. It returns the 50th percentile (the exact middle of the data), which is the same result as the MEDIAN function.

Q. What is the difference between PERCENTILE and PERCENTILE.INC?

A. The calculation logic is identical. PERCENTILE.INC simply makes it explicit that 0% and 100% are included (Inclusive).