To calculate a percentile in Excel, give PERCENTILE.INC your data range and the percentile you need. For the ten delivery times below, put 0.9 in B5 on the Percentiles sheet, then enter this formula in E5:
=PERCENTILE.INC(Data!$B$5:$B$14,$B$5)FormulaThe result is 61.2 hours, the 90th percentile under the inclusive convention. It's a delivery-time threshold, not a percentage or a promise that future orders will arrive within that time. Using PERCENTILE.EXC on the same data gives 70.8 hours. We'll work through why both results are possible.
Set up the delivery times
Download the delivery-time statistics workbook and open its Percentiles sheet to follow the comparison. To build the example yourself, create two worksheets named Data and Percentiles. On Data, put Order in A4 and Delivery hours in B4, then enter these fictional records:
| Row | Order in column A | Delivery hours in column B |
|---|---|---|
| 5 | D01 | 32 |
| 6 | D02 | 35 |
| 7 | D03 | 38 |
| 8 | D04 | 40 |
| 9 | D05 | 42 |
| 10 | D06 | 45 |
| 11 | D07 | 50 |
| 12 | D08 | 54 |
| 13 | D09 | 60 |
| 14 | D10 | 72 |
Enter the hours as numbers, with the unit in the header. The list is sorted so you can inspect the calculation, but you don't have to sort your source range before using either percentile function.
On Percentiles, enter Percentile (k) in A5 and 0.9 in B5. You can enter 90% instead; Excel stores the same value. Don't enter the integer 90, which is outside the allowed range.
Keep E5:E7 for the three results and use these labels in D5:D7:
| Label cell | Text |
|---|---|
| D5 | p90 INC (hours) |
| D6 | p90 EXC (hours) |
| D7 | p50 INC (hours) |
How INC gets 61.2 hours
The E5 formula reads the ten numbers from Data!$B$5:$B$14 and the requested percentile from $B$5 on the current sheet. The dollar signs keep those addresses fixed if you copy the formula; see absolute and relative cell references if that part is unfamiliar.
For ten observations, INC places the 90th percentile at position 1 + (10 − 1) × 0.9 = 9.1 in the sorted list. Count from the smallest value as position 1:
- Position 9 is 60 hours.
- Position 10 is 72 hours.
- Position 9.1 is one tenth of the way from 60 to 72.
The gap is 12 hours. One tenth of that gap is 1.2 hours, so adding it to 60 gives 61.2 hours.
This is interpolation: finding a value between two observations. Excel hasn't found an order that took exactly 61.2 hours. It has calculated a threshold using the two neighboring values. Microsoft's PERCENTILE.INC documentation describes the inclusive range for k and this interpolation behavior.
Compare the same data with EXC
In E6 on Percentiles, enter:
=PERCENTILE.EXC(Data!$B$5:$B$14,$B$5)FormulaThe result is 70.8 hours. EXC places the 90th percentile at position (10 + 1) × 0.9 = 9.9. That's nine tenths of the way from 60 to 72: add 10.8 hours to 60.
| Convention | Position in the sorted list | p90 result |
|---|---|---|
| INC | 9.1 | 61.2 hours |
| EXC | 9.9 | 70.8 hours |
The source values haven't changed. The functions assign percentile positions differently, which makes a noticeable difference in this short list.
Choose the convention required by your report or statistical method and use it consistently. INC and EXC are not a population-versus-sample choice, and INC isn't universally the correct answer. If you're comparing reports, check which method each one uses before investigating the data.
Here, nine of the ten observations fall below either p90 threshold. Don't turn that into a rule that exactly 90% of every dataset must fall strictly below its calculated 90th percentile. Small samples, repeated values and rounding can affect that interpretation.

Check the 50th percentile
In E7, enter:
=PERCENTILE.INC(Data!$B$5:$B$14,0.5)FormulaThis returns 43.5 hours, halfway between the fifth value, 42, and the sixth value, 45. The 50th percentile is the median. Again, the result doesn't have to appear among the recorded delivery times.
For a summary based on all the values, you can calculate the arithmetic mean in Excel; that answers a different question from finding a percentile.
A percentile tells you about a particular position in the ordered values. If you also need a measure of how spread out the times are around their mean, calculate standard deviation in Excel as a separate summary.
Why EXC can return #NUM! for a small sample
INC accepts k from 0 through 1, including both endpoints. EXC requires k to be greater than 0 and less than 1, but that condition alone doesn't guarantee a result. Its calculated position must also fit within the observations.
For these ten numbers, requesting p95 with EXC gives position (10 + 1) × 0.95 = 10.45. The list ends at position 10. Excel cannot interpolate between observations at that position, so the result is #NUM!. Microsoft's PERCENTILE.EXC documentation explains this inability-to-interpolate error.
If you try 95% in B5 to see the error in E6, use a copy of your workbook and return B5 to 90% afterward. The worked comparison uses p90 throughout.
An EXC error at p95 doesn't mean your delivery times are invalid. Check the requested percentile, the number of numeric observations and the method your report requires. Switching to INC changes the convention; it isn't a neutral way to hide the error.
Percentile or percentile rank?
A percentile starts with a proportion, such as 90%, and returns a value, such as 61.2 hours. A percentile rank starts with a value, such as a 60-hour delivery, and asks where it stands relative to the other observations. Decide which question your report asks before choosing the function.
The calculations above use the recorded delivery times directly and don't require a normal distribution. A normal probability model answers a separate question: given an assumed distribution, what proportion of deliveries would fall below a chosen time? Keep that assumption separate from the percentile you calculated from these ten records.