In Excel: use =PERCENTILE.INC(array, k) — =PERCENTILE.INC(B2:B500, 0.9) returns the value below which 90 % of the data falls.
On this page8
Syntax
Arguments
| Argument | required / optional | Description |
|---|---|---|
array | required | The range of values. |
k | required | The percentile as a decimal: 0.9 for the 90th. INC accepts 0 to 1, EXC excludes both ends. |
Related functions
Select the result cell and type =PERCENTILE.INC(.
Select the range of values, then a comma.
Enter the percentile as a decimal — 0.9 for the 90th, not 90.
Press Enter. Use .EXC instead if your methodology excludes the endpoints.
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
What this does
PERCENTILE returns the value at a given position in the distribution. It is how service-level reporting works: a p95 response time says 95 % of requests were faster than this number, which describes user experience far better than a mean. The .INC variant includes the endpoints and accepts k from 0 to 1; the .EXC variant excludes them and rejects k values too close to either end for the sample size. Values between data points are interpolated, so the result often is not a number that appears in the data. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. Treat “percentile formula in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected formula shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
Response times in B2:B5000: =PERCENTILE.INC(B2:B5000, 0.95) gives the p95 latency, and =PERCENTILE.INC(B2:B5000, 0.5) reproduces the median. Setting a compensation band from the 25th to the 75th percentile: =PERCENTILE.INC(C2:C200, 0.25) and =PERCENTILE.INC(C2:C200, 0.75). PERCENTILE is the right summary for response times, salaries and any distribution where the tail is the story, which is exactly where an average misleads. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. Here is the takeaway for “percentile formula in excel”: copy the answer if you are busy, but if you have a spare few minutes, rebuild the example in Excel yourself with the tool above open beside it. That single pass — type it, run it, watch the result move when you change an input — is what turns a formula you found into a technique you trust. Keep your inputs labelled and referenced, never hard-coded, and the same sheet stays correct and auditable as it grows. Done that way, you will not need to look this up again, and you will be the person others ask.
Common mistakes
- Passing 90 instead of 0.9, which returns
#NUM!because k must be between 0 and 1. - Using .EXC on a small sample where the requested percentile is not defined, which errors.
- Expecting the result to be an actual data point; percentiles are interpolated between neighbouring values.
Frequently asked questions
What is the difference between PERCENTILE.INC and PERCENTILE.EXC?
INC includes the 0th and 100th percentiles and accepts any k from 0 to 1. EXC excludes them and requires k to sit within 1/(n+1) and n/(n+1).
How do I calculate p95?
=PERCENTILE.INC(range, 0.95). Note the decimal — 95 returns an error.
Is the 50th percentile the median?
Yes, =PERCENTILE.INC(range, 0.5) and =MEDIAN(range) agree.
Other ways people ask this
People reach this page typing “excel formula for percentile” and “how to use percentile in excel”, among other phrasings; whichever wording you used, the fix above is the one you want.
Why do people search for this in so many different ways?
Because the same task has many names. “excel formula for percentile”, “how to use percentile in excel” all point at the one operation explained on this page, which is why they all lead here.