← All functions

PERCENTRANK.EXC

Quirk found

Category: Statistical · Last tested 2026-09-01

Real compatibility results for the PERCENTRANK.EXC 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.EXC’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.EXC working in LibreOffice?

PERCENTRANK.EXC 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.EXC working in Google Sheets?

PERCENTRANK.EXC 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.EXC(A2:A10,7) Microsoft's documented worked example: a value present in the array 0.7 0.7
Provenance

Microsoft publishes =PERCENTRANK.EXC(A2:A10, 7) = 0.7 for the data 1, 2, 3, 6, 6, 6, 7, 8, 9. DERIVATION in exact rational arithmetic, from the definition rather than from a statistics library: PERCENTRANK.EXC assigns rank r/(n+1) to the r-th smallest of n values (so the smallest scores 1/(n+1) and the largest n/(n+1), never 0 or 1 -- that is what the "exclusive" in the name means), and interpolates linearly between neighbouring ranks for a value not present in the data. Here n = 9 and 7 is the 7th smallest, so the rank is 7/(9+1) = 0.7 exactly. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/percentrank-exc-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.EXC(A2:A10,5.43) Microsoft's documented interpolation case 0.381 0.381
Provenance

Microsoft publishes =PERCENTRANK.EXC(A2:A10,5.43) = 0.381, and documents the behaviour: "If x does not match one of the values in array, PERCENTRANK.EXC interpolates to return the correct percentage rank." DERIVATION in exact rationals: 5.43 lies between 3 (the 3rd smallest) and 6 (the 4th), so its interpolated rank is 3 + (5.43 - 3)/(6 - 3) = 3 + 81/100 = 3.81, and 3.81/(9+1) = 0.381 exactly. Computed with Fraction, not floats -- with binary floats the same arithmetic lands a hair below 0.381 and truncates to 0.380, which is precisely the trap this case is built to avoid.

Matched
=PERCENTRANK.EXC(A2:A10,5.43,1) The same interpolation with the optional significance argument set to 1 0.3 0.3
Provenance

Microsoft publishes =PERCENTRANK.EXC(A2:A10,5.43,1) = 0.3, "displaying only 1 significant digit in the result (the default is 3)". 0.381 cut to one significant digit is 0.3 -- and note that it is CUT, not rounded: rounding 0.381 to one significant digit would give 0.4. This case is the one that pins the truncation semantics of the significance argument. EXECUTED RESULT: LibreOffice returns 0.4 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.3. The rounding-versus-truncation split shown by PERCENTRANK.INC's repeating-decimal rows, here made visible at ONE significant digit, where it moves the answer by a third of its own size. The two full-precision rows of this file (0.7 and 0.381) pass on every build, so the engine's ranking arithmetic is right and only the significance step differs.

Matched
=PERCENTRANK.EXC(A2:A10,1) The smallest member of the array, which the exclusive definition keeps above zero 0.1 0.1
Provenance

The whole difference between the .EXC and .INC variants is at the ends of the range: the smallest of n = 9 values ranks 1/(9+1) = 0.1 under .EXC, where .INC would give 0. Asserted because an engine that implemented .EXC as .INC under a new name passes every interior case and fails only here.

Matched
=PERCENTRANK.EXC(A2:A10,7,0) A significance of zero, which the page excludes #NUM! #NUM!
Provenance

Microsoft documents: "If significance < 1, PERCENTRANK.EXC returns the #NUM! error value." OpenFormula 1.3 section 6.18.58 states the same constraint for its PERCENTRANK ("INT(Significance) = Significance; Significance >= 1").

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

Microsoft documents: "If array is empty, PERCENTRANK.EXC returns the #NUM! error value." The range D20:D25 is deliberately empty: no setup_cells value is written anywhere inside it, which is the entire point of the case (see scripts/check_test_setup_refs.py, which accepts an unset reference only when the case says in so many words that it is testing a blank).

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.EXC(A2:A10,7) Microsoft's documented worked example: a value present in the array 0.7 0.7
Provenance

Microsoft publishes =PERCENTRANK.EXC(A2:A10, 7) = 0.7 for the data 1, 2, 3, 6, 6, 6, 7, 8, 9. DERIVATION in exact rational arithmetic, from the definition rather than from a statistics library: PERCENTRANK.EXC assigns rank r/(n+1) to the r-th smallest of n values (so the smallest scores 1/(n+1) and the largest n/(n+1), never 0 or 1 -- that is what the "exclusive" in the name means), and interpolates linearly between neighbouring ranks for a value not present in the data. Here n = 9 and 7 is the 7th smallest, so the rank is 7/(9+1) = 0.7 exactly. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/percentrank-exc-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.EXC(A2:A10,5.43) Microsoft's documented interpolation case 0.381 0.381
Provenance

Microsoft publishes =PERCENTRANK.EXC(A2:A10,5.43) = 0.381, and documents the behaviour: "If x does not match one of the values in array, PERCENTRANK.EXC interpolates to return the correct percentage rank." DERIVATION in exact rationals: 5.43 lies between 3 (the 3rd smallest) and 6 (the 4th), so its interpolated rank is 3 + (5.43 - 3)/(6 - 3) = 3 + 81/100 = 3.81, and 3.81/(9+1) = 0.381 exactly. Computed with Fraction, not floats -- with binary floats the same arithmetic lands a hair below 0.381 and truncates to 0.380, which is precisely the trap this case is built to avoid.

Matched
=PERCENTRANK.EXC(A2:A10,5.43,1) The same interpolation with the optional significance argument set to 1 0.4 0.3
Provenance

Microsoft publishes =PERCENTRANK.EXC(A2:A10,5.43,1) = 0.3, "displaying only 1 significant digit in the result (the default is 3)". 0.381 cut to one significant digit is 0.3 -- and note that it is CUT, not rounded: rounding 0.381 to one significant digit would give 0.4. This case is the one that pins the truncation semantics of the significance argument. EXECUTED RESULT: LibreOffice returns 0.4 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.3. The rounding-versus-truncation split shown by PERCENTRANK.INC's repeating-decimal rows, here made visible at ONE significant digit, where it moves the answer by a third of its own size. The two full-precision rows of this file (0.7 and 0.381) pass on every build, so the engine's ranking arithmetic is right and only the significance step differs.

Mismatch
=PERCENTRANK.EXC(A2:A10,1) The smallest member of the array, which the exclusive definition keeps above zero 0.1 0.1
Provenance

The whole difference between the .EXC and .INC variants is at the ends of the range: the smallest of n = 9 values ranks 1/(9+1) = 0.1 under .EXC, where .INC would give 0. Asserted because an engine that implemented .EXC as .INC under a new name passes every interior case and fails only here.

Matched
=PERCENTRANK.EXC(A2:A10,7,0) A significance of zero, which the page excludes 0.7 #NUM!
Provenance

Microsoft documents: "If significance < 1, PERCENTRANK.EXC returns the #NUM! error value." OpenFormula 1.3 section 6.18.58 states the same constraint for its PERCENTRANK ("INT(Significance) = Significance; Significance >= 1").

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

Microsoft documents: "If array is empty, PERCENTRANK.EXC returns the #NUM! error value." The range D20:D25 is deliberately empty: no setup_cells value is written anywhere inside it, which is the entire point of the case (see scripts/check_test_setup_refs.py, which accepts an unset reference only when the case says in so many words that it is testing a blank).

Mismatch

LibreOffice Calc 25.8.7.3 (tested 2026-08-31)

FormulaDescriptionResultExpectedVerdict
=PERCENTRANK.EXC(A2:A10,7) Microsoft's documented worked example: a value present in the array 0.7 0.7
Provenance

Microsoft publishes =PERCENTRANK.EXC(A2:A10, 7) = 0.7 for the data 1, 2, 3, 6, 6, 6, 7, 8, 9. DERIVATION in exact rational arithmetic, from the definition rather than from a statistics library: PERCENTRANK.EXC assigns rank r/(n+1) to the r-th smallest of n values (so the smallest scores 1/(n+1) and the largest n/(n+1), never 0 or 1 -- that is what the "exclusive" in the name means), and interpolates linearly between neighbouring ranks for a value not present in the data. Here n = 9 and 7 is the 7th smallest, so the rank is 7/(9+1) = 0.7 exactly. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/percentrank-exc-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.EXC(A2:A10,5.43) Microsoft's documented interpolation case 0.381 0.381
Provenance

Microsoft publishes =PERCENTRANK.EXC(A2:A10,5.43) = 0.381, and documents the behaviour: "If x does not match one of the values in array, PERCENTRANK.EXC interpolates to return the correct percentage rank." DERIVATION in exact rationals: 5.43 lies between 3 (the 3rd smallest) and 6 (the 4th), so its interpolated rank is 3 + (5.43 - 3)/(6 - 3) = 3 + 81/100 = 3.81, and 3.81/(9+1) = 0.381 exactly. Computed with Fraction, not floats -- with binary floats the same arithmetic lands a hair below 0.381 and truncates to 0.380, which is precisely the trap this case is built to avoid.

Matched
=PERCENTRANK.EXC(A2:A10,5.43,1) The same interpolation with the optional significance argument set to 1 0.4 0.3
Provenance

Microsoft publishes =PERCENTRANK.EXC(A2:A10,5.43,1) = 0.3, "displaying only 1 significant digit in the result (the default is 3)". 0.381 cut to one significant digit is 0.3 -- and note that it is CUT, not rounded: rounding 0.381 to one significant digit would give 0.4. This case is the one that pins the truncation semantics of the significance argument. EXECUTED RESULT: LibreOffice returns 0.4 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.3. The rounding-versus-truncation split shown by PERCENTRANK.INC's repeating-decimal rows, here made visible at ONE significant digit, where it moves the answer by a third of its own size. The two full-precision rows of this file (0.7 and 0.381) pass on every build, so the engine's ranking arithmetic is right and only the significance step differs.

Mismatch
=PERCENTRANK.EXC(A2:A10,1) The smallest member of the array, which the exclusive definition keeps above zero 0.1 0.1
Provenance

The whole difference between the .EXC and .INC variants is at the ends of the range: the smallest of n = 9 values ranks 1/(9+1) = 0.1 under .EXC, where .INC would give 0. Asserted because an engine that implemented .EXC as .INC under a new name passes every interior case and fails only here.

Matched
=PERCENTRANK.EXC(A2:A10,7,0) A significance of zero, which the page excludes #VALUE! #NUM!
Provenance

Microsoft documents: "If significance < 1, PERCENTRANK.EXC returns the #NUM! error value." OpenFormula 1.3 section 6.18.58 states the same constraint for its PERCENTRANK ("INT(Significance) = Significance; Significance >= 1").

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

Microsoft documents: "If array is empty, PERCENTRANK.EXC returns the #NUM! error value." The range D20:D25 is deliberately empty: no setup_cells value is written anywhere inside it, which is the entire point of the case (see scripts/check_test_setup_refs.py, which accepts an unset reference only when the case says in so many words that it is testing a blank).

Mismatch

Docs & syntax

Where PERCENTRANK.EXC behaves differently