PERCENTILE.EXC Function (LibreOffice Calc)
Calculate exclusive percentiles in Calc with worked interpolation, sample-size limits, and boundary checks.
Verification status: Consult the documentation, examples and any stated test scope below. How formula examples are checked
Calculate an exclusive percentile
PERCENTILE.EXC uses exclusive percentile ranks and linear interpolation. Exclusive does not mean removing the minimum and maximum observations. Those observations can be used in the calculation, and valid boundary requests can even return them.
Syntax and the sample-size constraint
=PERCENTILE.EXC(Data; Alpha)
For a nonempty numeric range with n observations, Alpha must be greater than 0 and less than 1. That requirement alone is not sufficient: the official Help also requires 1/(n + 1) ≤ Alpha ≤ n/(n + 1) for interpolation within the available observations.
Enter 0.9 or 90%, not 90, for the 90th percentile. Do not change the intended percentile merely to suppress an error: a small sample may not support the requested exclusive percentile.
Worked example: ten measurements
Enter this complete invented sample in A1:A11. A1 is a header, not part of the calculation.
| Cell | Entry |
|---|---|
| A1 | Measurement |
| A2 | 5 |
| A3 | 10 |
| A4 | 15 |
| A5 | 20 |
| A6 | 25 |
| A7 | 30 |
| A8 | 35 |
| A9 | 40 |
| A10 | 60 |
| A11 | 100 |
| Formula | Expected result |
|---|---|
=PERCENTILE.EXC(A2:A11;0.25) |
13.75 |
=PERCENTILE.EXC(A2:A11;0.5) |
27.5 |
=PERCENTILE.EXC(A2:A11;0.75) |
45 |
=PERCENTILE.EXC(A2:A11;0.9) |
96 |
=PERCENTILE.EXC(A2:A11;90%) |
96 |
Interpolate rather than round the rank
The one-based rank is r = (n + 1) × Alpha. For this sample’s 90th percentile, r = 11 × 0.9 = 9.9. The adjacent sorted values are 60 and 100, so the result is 60 + 0.9 × (100 − 60) = 96.
Rounding rank 9.9 up and selecting the tenth observation would return 100, not 96. An INDEX/SORT/ROUNDUP expression is therefore not an equivalent calculation. Sorting is helpful for manual inspection but need not be performed on the original input range.
On a disposable copy, change A11 from 100 to 140: the result becomes 132, because 60 + 0.9 × (140 − 60) = 132. Restore A11 to 100 and verify 96. The maximum clearly remains part of the calculation.
For the original sample, PERCENTILE.INC instead returns 64 at 90%, using rank 9.1. Both methods have legitimate uses; follow the specified convention rather than describing EXC as more rigorous.
Check boundary and small-sample cases
Use a separate sheet with 10, 20, 30 in A1:A3.
| Formula | Expected outcome |
|---|---|
=PERCENTILE.EXC(A1:A3;0.25) |
10, the minimum |
=PERCENTILE.EXC(A1:A3;0.5) |
20 |
=PERCENTILE.EXC(A1:A3;0.75) |
30, the maximum |
=PERCENTILE.EXC(A1:A3;0.2) |
Error: rank 0.8 is below 1 |
=PERCENTILE.EXC(A1:A3;0.8) |
Error: rank 3.2 exceeds 3 |
=PERCENTILE.EXC(A1:A3;0) |
Error: Alpha endpoint not allowed |
=PERCENTILE.EXC(A1:A3;1) |
Error: Alpha endpoint not allowed |
=PERCENTILE.EXC(A1:A2;0.5) |
15 |
=PERCENTILE.EXC(A1:A1;0.5) |
10 |
For the single observation, only Alpha 0.5 gives rank 1; Alpha 0.25 is out of range. An empty numeric sample is also an error. Displayed error codes have not been tested in this revision.
For the original ten-value sample, Alpha 0.95 is still less than 1 but fails: its rank is 10.45, beyond the tenth observation. At 25%, 50%, and 75%, see QUARTILE.EXC for the corresponding quartile requests.
Verification and availability
This guide covers desktop LibreOffice Calc with English function names and semicolon separators. The official Help, labeled 26.8 when retrieved on 2026-10-23, states that this function has been available since LibreOffice 4.3. Its entry also appears in the 26.8.1.1 source registry. A source entry is not a native test of that release.
The numeric results below were checked independently with exact rational arithmetic, not executed in Calc for this revision. The rank and boundary rules were also checked in the pinned Calc implementation, associated with LibreOfficeDev 26.8.0.0.alpha0. No screenshot, native version test, or cross-application round trip is claimed.
Troubleshooting and sharing
- Verify the numeric input.
=COUNT(A2:A11)should return 10 for the main example. If the count differs, inspect the selected range and imported numeric-looking text. Do not replace missing observations or source errors with zero just to obtain an answer: that changes the dataset. - Keep the calculation method explicit. INC and EXC use different ranks. Neither is inherently more rigorous or reserved for academic work. Match the convention required by the report you are reproducing.
- Do not substitute a rounded rank. Selecting one sorted observation is not linear interpolation. Increasing display precision can reveal a fractional result hidden by cell formatting.
- Check the intended population. If only certain records should participate, prepare a separate, checked numeric range. Do not assume hiding rows, filtering, or a conditional array expression has removed the intended records.
- Inspect failures before masking them. Check source error cells and parameters rather than using a blanket IFERROR. This guide does not prescribe untested displayed error codes or text/logical coercion rules.
The Help identifies COM.MICROSOFT.PERCENTILE.EXC and says it is not part of OpenFormula 1.3. This does not prove support or rejection in any other application. Preserve a working copy and, before sharing another file format, reopen it in the exact receiving application and compare both formula text and the example values. Receiving-application compatibility remains untested here.