← All functions

PERCENTRANK.INC

Quirk found

Category: Statistical · Last tested 2026-09-01

Real compatibility results for the PERCENTRANK.INC function: executed in Excel for the web, Google Sheets and LibreOffice Calc, with desktop Excel behavior from Microsoft’s official documentation (we do not run desktop Excel — Excel for the web is a different application and is executed separately). Syntax and links to that documentation are below.

Support matrix

EngineDocumentedLive-testedVerdict
Excel (desktop)Yes No — documented only n/a
Excel for the web— Yes (recalc, 2026-09-01) Quirk found
Google SheetsYes Yes (Drive import, 2026-08-31) Quirk found
LibreOffice CalcYes Yes (25.8.7.3, 2026-08-31) Quirk found

LibreOffice version history

We executed the same test cases under each LibreOffice release to show exactly when PERCENTRANK.INC’s support changed — not documentation claims, real results.

LibreOffice versionVerdictTested
24.2.0.3 Quirk found 2026-08-31
24.8.7.2 Quirk found 2026-08-31
25.2.0.3 Quirk found 2026-08-31
25.8.7.3 Quirk found 2026-08-31

Why isn't PERCENTRANK.INC working in LibreOffice?

PERCENTRANK.INC exists in LibreOffice 25.8.7.3, but it is not a drop-in match for Excel — our executed tests found real behavioral differences (detailed in the test results on this page). If a formula that works in Excel or Google Sheets misbehaves in LibreOffice, compare your usage against the failing cases above before assuming your data is wrong.

Why isn’t PERCENTRANK.INC working in Google Sheets?

PERCENTRANK.INC runs in Google Sheets, but our executed cases show it does not match Excel’s documented behavior on every input (the failing cases are listed on this page). If a formula that behaves one way in Excel gives you a different answer in Sheets, compare your usage against those cases before assuming your data is wrong.

Discovered quirks

Executed test cases

Excel for the web (executed 2026-09-01 via OneDrive recalculation)

These values come from Excel for the web, not from desktop Excel. They are two different implementations of the calculation engine, and this run measured only the web one: the corpus was uploaded to OneDrive as .xlsx, recalculated by Excel for the web on open, and downloaded again for readback. Excel for the web is a rolling service with no pinnable version, so the run is identified by its date. Where a value here disagrees with the Expected column — which is Microsoft’s documentation of the desktop product — we cannot tell you whether the web engine diverges from the desktop one or the documentation is wrong about both, because we do not run desktop Excel.

FormulaDescriptionResultExpectedVerdict
=PERCENTRANK.INC(A2:A11,2) Microsoft's documented worked example 0.333 0.333
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,2) = 0.333 for the data 13, 12, 11, 8, 4, 3, 2, 1, 1, 1. DERIVATION in exact rational arithmetic: PERCENTRANK.INC gives the r-th smallest of n values the rank r/(n-1) counting r from 0, so the smallest scores 0 and the largest 1 (the "inclusive" of the name), with linear interpolation for a value not in the data. Microsoft spells the same arithmetic out on the page for its first row: "0.333, because 3 values in the set are smaller than 2, and 6 are larger than 2; 3/(3+6)=0.333". Three of the ten values are below 2, so the rank is 3/9 = 0.3333... and the default three significant digits give 0.333. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/percentrank-inc-function (the /en-us/office/<name>-function-<guid> path was serving Microsoft's 'Sorry, the page you're looking for can't be found' body throughout this batch, and the working path returns an 87 KB stub about half the time, so pages were fetched with retries until the payload exceeded 150 KB).

Matched
=PERCENTRANK.INC(A2:A11,4) The documented row whose exact value is 5/9 -- the case that distinguishes truncation from rounding 0.555 0.555
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,4) = 0.555. THIS IS THE SHARPEST CASE IN THE FILE. Five of the ten values are below 4, so the exact rank is 5/9 = 0.55555... To three significant digits that is 0.555 if the significance argument TRUNCATES and 0.556 if it ROUNDS, and Microsoft publishes 0.555 -- so the documented behaviour is truncation. Microsoft's next row is the same test again in the other direction: =PERCENTRANK.INC(A2:A11,8) = 0.666, where 6/9 = 0.6666... truncates to 0.666 and would round to 0.667. An engine that rounds instead of truncating produces a plausible-looking number that differs from Excel in the third decimal on the most ordinary inputs imaginable, and only a case whose exact value is a repeating decimal can see it. EXECUTED RESULT -- A SILENT WRONG ANSWER, AND THE HEADLINE FINDING OF THIS BATCH: LibreOffice returns 0.556 on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3), which agree case for case, where Excel documents and publishes 0.555. LibreOffice ROUNDS the result to the significance digits; Excel TRUNCATES it. Nothing errors, nothing warns, and the answer is wrong in the third decimal on the most ordinary input imaginable -- a percentile rank of a small integer list. The companion case in this file (rank of 8, exact value 6/9) shows the same split, 0.667 against Microsoft's published 0.666, and PERCENTRANK.EXC's significance-1 row shows it a third time, 0.4 against Microsoft's published 0.3. The corpus's legacy PERCENTRANK file never caught this because every value it asserts is exact at three digits.

Matched
=PERCENTRANK.INC(A2:A11,8) The documented row whose exact value is 6/9 0.666 0.666
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,8) = 0.666. Six of the ten values are below 8, so the exact rank is 6/9 = 0.66666..., truncated to three significant digits by the default significance: 0.666, not 0.667. Asserted alongside the 5/9 case because the two together make the truncation reading unambiguous -- a single repeating-decimal row could be dismissed as a typo on Microsoft's page, two cannot. EXECUTED RESULT: LibreOffice returns 0.667 on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3), which agree case for case, against Microsoft's published 0.666. The second of three demonstrations in this batch that LibreOffice rounds where Excel truncates; see the 5/9 case above.

Matched
=PERCENTRANK.INC(A2:A11,5) Microsoft's documented interpolation case 0.583 0.583
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,5) = 0.583 and explains it as "one-quarter of the way between the PERCENTRANK.INC of 4 and the PERCENTRANK.INC of 8". DERIVATION: 5 sits between 4 (rank 5) and 8 (rank 6), a quarter of the way along, so the exact rank is (5 + 1/4)/9 = 21/36 = 0.58333..., truncated to 0.583.

Matched
=PERCENTRANK.INC(A2:A11,13) The largest member of the array, which the inclusive definition sends to 1 1 1
Provenance

Nine of the ten values are below 13, so the rank is 9/9 = 1 exactly. This is the end of the range where .INC and .EXC part company (.EXC would give 10/11 here), so it pins which of the two definitions the engine implemented.

Matched
=PERCENTRANK.INC(A2:A11,2,0) A significance of zero, which the page excludes #NUM! #NUM!
Provenance

Microsoft documents: "If significance < 1, PERCENTRANK.INC returns the #NUM! error value."

Matched
=PERCENTRANK.INC(D20:D25,2) An empty array, which the page excludes -- D20:D25 is deliberately left blank #N/A #NUM!
Provenance

Microsoft documents: "If array is empty, PERCENTRANK.INC returns the #NUM! error value." D20:D25 is deliberately empty; nothing is written into it by design.

Mismatch

Google Sheets (executed 2026-08-31 via Drive import)

Google Sheets is a rolling service with no pinnable version, so this run is identified by its date. The corpus was imported to Drive as .xlsx, recalculated by Sheets, and exported back for readback.

FormulaDescriptionResultExpectedVerdict
=PERCENTRANK.INC(A2:A11,2) Microsoft's documented worked example 0.333 0.333
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,2) = 0.333 for the data 13, 12, 11, 8, 4, 3, 2, 1, 1, 1. DERIVATION in exact rational arithmetic: PERCENTRANK.INC gives the r-th smallest of n values the rank r/(n-1) counting r from 0, so the smallest scores 0 and the largest 1 (the "inclusive" of the name), with linear interpolation for a value not in the data. Microsoft spells the same arithmetic out on the page for its first row: "0.333, because 3 values in the set are smaller than 2, and 6 are larger than 2; 3/(3+6)=0.333". Three of the ten values are below 2, so the rank is 3/9 = 0.3333... and the default three significant digits give 0.333. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/percentrank-inc-function (the /en-us/office/<name>-function-<guid> path was serving Microsoft's 'Sorry, the page you're looking for can't be found' body throughout this batch, and the working path returns an 87 KB stub about half the time, so pages were fetched with retries until the payload exceeded 150 KB).

Matched
=PERCENTRANK.INC(A2:A11,4) The documented row whose exact value is 5/9 -- the case that distinguishes truncation from rounding 0.556 0.555
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,4) = 0.555. THIS IS THE SHARPEST CASE IN THE FILE. Five of the ten values are below 4, so the exact rank is 5/9 = 0.55555... To three significant digits that is 0.555 if the significance argument TRUNCATES and 0.556 if it ROUNDS, and Microsoft publishes 0.555 -- so the documented behaviour is truncation. Microsoft's next row is the same test again in the other direction: =PERCENTRANK.INC(A2:A11,8) = 0.666, where 6/9 = 0.6666... truncates to 0.666 and would round to 0.667. An engine that rounds instead of truncating produces a plausible-looking number that differs from Excel in the third decimal on the most ordinary inputs imaginable, and only a case whose exact value is a repeating decimal can see it. EXECUTED RESULT -- A SILENT WRONG ANSWER, AND THE HEADLINE FINDING OF THIS BATCH: LibreOffice returns 0.556 on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3), which agree case for case, where Excel documents and publishes 0.555. LibreOffice ROUNDS the result to the significance digits; Excel TRUNCATES it. Nothing errors, nothing warns, and the answer is wrong in the third decimal on the most ordinary input imaginable -- a percentile rank of a small integer list. The companion case in this file (rank of 8, exact value 6/9) shows the same split, 0.667 against Microsoft's published 0.666, and PERCENTRANK.EXC's significance-1 row shows it a third time, 0.4 against Microsoft's published 0.3. The corpus's legacy PERCENTRANK file never caught this because every value it asserts is exact at three digits.

Mismatch
=PERCENTRANK.INC(A2:A11,8) The documented row whose exact value is 6/9 0.667 0.666
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,8) = 0.666. Six of the ten values are below 8, so the exact rank is 6/9 = 0.66666..., truncated to three significant digits by the default significance: 0.666, not 0.667. Asserted alongside the 5/9 case because the two together make the truncation reading unambiguous -- a single repeating-decimal row could be dismissed as a typo on Microsoft's page, two cannot. EXECUTED RESULT: LibreOffice returns 0.667 on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3), which agree case for case, against Microsoft's published 0.666. The second of three demonstrations in this batch that LibreOffice rounds where Excel truncates; see the 5/9 case above.

Mismatch
=PERCENTRANK.INC(A2:A11,5) Microsoft's documented interpolation case 0.583 0.583
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,5) = 0.583 and explains it as "one-quarter of the way between the PERCENTRANK.INC of 4 and the PERCENTRANK.INC of 8". DERIVATION: 5 sits between 4 (rank 5) and 8 (rank 6), a quarter of the way along, so the exact rank is (5 + 1/4)/9 = 21/36 = 0.58333..., truncated to 0.583.

Matched
=PERCENTRANK.INC(A2:A11,13) The largest member of the array, which the inclusive definition sends to 1 1 1
Provenance

Nine of the ten values are below 13, so the rank is 9/9 = 1 exactly. This is the end of the range where .INC and .EXC part company (.EXC would give 10/11 here), so it pins which of the two definitions the engine implemented.

Matched
=PERCENTRANK.INC(A2:A11,2,0) A significance of zero, which the page excludes 0.333 #NUM!
Provenance

Microsoft documents: "If significance < 1, PERCENTRANK.INC returns the #NUM! error value."

Mismatch
=PERCENTRANK.INC(D20:D25,2) An empty array, which the page excludes -- D20:D25 is deliberately left blank #N/A #NUM!
Provenance

Microsoft documents: "If array is empty, PERCENTRANK.INC returns the #NUM! error value." D20:D25 is deliberately empty; nothing is written into it by design.

Mismatch

LibreOffice Calc 25.8.7.3 (tested 2026-08-31)

FormulaDescriptionResultExpectedVerdict
=PERCENTRANK.INC(A2:A11,2) Microsoft's documented worked example 0.333 0.333
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,2) = 0.333 for the data 13, 12, 11, 8, 4, 3, 2, 1, 1, 1. DERIVATION in exact rational arithmetic: PERCENTRANK.INC gives the r-th smallest of n values the rank r/(n-1) counting r from 0, so the smallest scores 0 and the largest 1 (the "inclusive" of the name), with linear interpolation for a value not in the data. Microsoft spells the same arithmetic out on the page for its first row: "0.333, because 3 values in the set are smaller than 2, and 6 are larger than 2; 3/(3+6)=0.333". Three of the ten values are below 2, so the rank is 3/9 = 0.3333... and the default three significant digits give 0.333. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/percentrank-inc-function (the /en-us/office/<name>-function-<guid> path was serving Microsoft's 'Sorry, the page you're looking for can't be found' body throughout this batch, and the working path returns an 87 KB stub about half the time, so pages were fetched with retries until the payload exceeded 150 KB).

Matched
=PERCENTRANK.INC(A2:A11,4) The documented row whose exact value is 5/9 -- the case that distinguishes truncation from rounding 0.556 0.555
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,4) = 0.555. THIS IS THE SHARPEST CASE IN THE FILE. Five of the ten values are below 4, so the exact rank is 5/9 = 0.55555... To three significant digits that is 0.555 if the significance argument TRUNCATES and 0.556 if it ROUNDS, and Microsoft publishes 0.555 -- so the documented behaviour is truncation. Microsoft's next row is the same test again in the other direction: =PERCENTRANK.INC(A2:A11,8) = 0.666, where 6/9 = 0.6666... truncates to 0.666 and would round to 0.667. An engine that rounds instead of truncating produces a plausible-looking number that differs from Excel in the third decimal on the most ordinary inputs imaginable, and only a case whose exact value is a repeating decimal can see it. EXECUTED RESULT -- A SILENT WRONG ANSWER, AND THE HEADLINE FINDING OF THIS BATCH: LibreOffice returns 0.556 on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3), which agree case for case, where Excel documents and publishes 0.555. LibreOffice ROUNDS the result to the significance digits; Excel TRUNCATES it. Nothing errors, nothing warns, and the answer is wrong in the third decimal on the most ordinary input imaginable -- a percentile rank of a small integer list. The companion case in this file (rank of 8, exact value 6/9) shows the same split, 0.667 against Microsoft's published 0.666, and PERCENTRANK.EXC's significance-1 row shows it a third time, 0.4 against Microsoft's published 0.3. The corpus's legacy PERCENTRANK file never caught this because every value it asserts is exact at three digits.

Mismatch
=PERCENTRANK.INC(A2:A11,8) The documented row whose exact value is 6/9 0.667 0.666
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,8) = 0.666. Six of the ten values are below 8, so the exact rank is 6/9 = 0.66666..., truncated to three significant digits by the default significance: 0.666, not 0.667. Asserted alongside the 5/9 case because the two together make the truncation reading unambiguous -- a single repeating-decimal row could be dismissed as a typo on Microsoft's page, two cannot. EXECUTED RESULT: LibreOffice returns 0.667 on all four pinned builds (24.2.0.3, 24.8.7.2, 25.2.0.3, 25.8.7.3), which agree case for case, against Microsoft's published 0.666. The second of three demonstrations in this batch that LibreOffice rounds where Excel truncates; see the 5/9 case above.

Mismatch
=PERCENTRANK.INC(A2:A11,5) Microsoft's documented interpolation case 0.583 0.583
Provenance

Microsoft publishes =PERCENTRANK.INC(A2:A11,5) = 0.583 and explains it as "one-quarter of the way between the PERCENTRANK.INC of 4 and the PERCENTRANK.INC of 8". DERIVATION: 5 sits between 4 (rank 5) and 8 (rank 6), a quarter of the way along, so the exact rank is (5 + 1/4)/9 = 21/36 = 0.58333..., truncated to 0.583.

Matched
=PERCENTRANK.INC(A2:A11,13) The largest member of the array, which the inclusive definition sends to 1 1 1
Provenance

Nine of the ten values are below 13, so the rank is 9/9 = 1 exactly. This is the end of the range where .INC and .EXC part company (.EXC would give 10/11 here), so it pins which of the two definitions the engine implemented.

Matched
=PERCENTRANK.INC(A2:A11,2,0) A significance of zero, which the page excludes #VALUE! #NUM!
Provenance

Microsoft documents: "If significance < 1, PERCENTRANK.INC returns the #NUM! error value."

Mismatch
=PERCENTRANK.INC(D20:D25,2) An empty array, which the page excludes -- D20:D25 is deliberately left blank #VALUE! #NUM!
Provenance

Microsoft documents: "If array is empty, PERCENTRANK.INC returns the #NUM! error value." D20:D25 is deliberately empty; nothing is written into it by design.

Mismatch

Docs & syntax

Related how-to recipes

Where PERCENTRANK.INC behaves differently