Going Stellar

Home/Google Sheets reference

Google Sheets function · Statistical

PERCENTILE in Google Sheets: syntax and examples

PERCENTILE returns the value below which a chosen share of the data falls. It interpolates between neighbouring values, so the result is not always one of the numbers in the range.

Syntax

PERCENTILE(data, percentile)

Arguments

ArgumentTypeRequiredWhat it does
datarangeyesThe values to measure. Text and blanks are ignored.
percentilenumberyesA number from 0 to 1. 0.5 is the median, 0.9 the 90th percentile.

Examples

The examples use this table, starting in A1:

12
7
3
15
9
20
=PERCENTILE(A1:A6, 0.5)

Result: 10.5

The 50th percentile is the median.

Run in a Google Sheet (English US locale) on .

=PERCENTILE(A1:A6, 0.9)

Result: 17.5

Value below which 90% of the data falls, interpolated between neighbours.

Run in a Google Sheet (English US locale) on .

=PERCENTILE(A1:A6, 0)

Result: 3

0 returns the minimum.

Run in a Google Sheet (English US locale) on .

=PERCENTILE(A1:A6, 1)

Result: 20

1 returns the maximum.

Run in a Google Sheet (English US locale) on .

=PERCENTILE(A1:A6, 0.25)

Result: 7.5

The first quartile.

Run in a Google Sheet (English US locale) on .

Common errors

  • The percentile is a fraction from 0 to 1. Typing 50 or 90 returns #NUM!; write 0.5 or 0.9.
  • A value below 0 or above 1 also returns #NUM!.
  • The result is interpolated. On six values the 0.9 percentile lands between the two largest, not on one of them.
  • Text and blank cells in data are skipped silently, so a number stored as text drops out of the calculation.

Compared with Excel

Same as PERCENTILE in Excel, which equals PERCENTILE.INC.

Sources

  1. PERCENTILE (Docs Editors Help)

Markdown version · All functions