Contact

PERCENTILE.INC Function (LibreOffice Calc)

Math Intermediate LibreOffice Calc LibreOffice 4.3

Calculate inclusive percentiles in Calc, understand fractional ranks, and check complete examples and valid Alpha boundaries.

Verification status: Consult the documentation, examples and any stated test scope below. How formula examples are checked

Calculate an inclusive percentile

PERCENTILE.INC returns a value at a chosen percentile using linear interpolation. Alpha 0 requests the minimum and Alpha 1 the maximum. The result can lie between observations rather than equal one of them.

Syntax

=PERCENTILE.INC(Data; Alpha)

Use a nonempty numeric cell range for Data. Alpha is between 0 and 1 inclusive: enter 0.9 or 90% for the 90th percentile, not 90.

Worked example: the 90th percentile

Enter this entire invented sample in A1:A11; the header is not an observation.

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.INC(A2:A11;0) 5
=PERCENTILE.INC(A2:A11;0.25) 16.25
=PERCENTILE.INC(A2:A11;0.5) 27.5
=PERCENTILE.INC(A2:A11;0.75) 38.75
=PERCENTILE.INC(A2:A11;0.9) 64
=PERCENTILE.INC(A2:A11;90%) 64
=PERCENTILE.INC(A2:A11;1) 100

Why the answer is 64, not 60 or 100

With n observations, the one-based inclusive rank is r = 1 + (n − 1) × Alpha. For ten observations at 90%, r = 1 + 9 × 0.9 = 9.1.

The ninth and tenth sorted values are 60 and 100. Rank 9.1 means 10%, not 90%, of the distance between them: 60 + 0.1 × (100 − 60) = 64.

Selecting position ROUNDUP(10 × 0.9) would return the ninth observation, 60. Rounding rank 9.1 upward would select 100. Neither selection preserves interpolation. The input range need not already be sorted.

On a disposable copy, change A11 from 100 to 140. The 90th percentile becomes 68, because 60 + 0.1 × (140 − 60) = 68. Restore A11 to 100 and verify the original expected value 64.

For the numeric one-cell range A2:A2, Alpha 0, 0.5, and 1 all return 5. Alpha −0.1, 1.1, or 90 is invalid. A range without numeric observations produces an error rather than a percentile of zero. These are mathematical/source-checked controls, not recorded native error displays.

At Alpha 0.25, 0.5, and 0.75, compare with Types 1, 2, and 3 in QUARTILE.INC. For this sample, PERCENTILE.EXC gives 96 at 90%, using rank 9.9 instead of 9.1. EXC does not discard the sample’s minimum or maximum; its allowable Alpha values also depend on sample size.

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.INC 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.