PERMUTATIONA
Quirk foundCategory: Statistical · Last tested 2026-09-01
Real compatibility results for the PERMUTATIONA 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
| Engine | Documented | Live-tested | Verdict |
|---|---|---|---|
| Excel (desktop) | Yes | No — documented only | n/a |
| Excel for the web | — | Yes (recalc, 2026-09-01) | Quirk found |
| Google Sheets | Yes | Yes (Drive import, 2026-08-31) | Quirk found |
| LibreOffice Calc | Yes | 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 PERMUTATIONA’s support changed — not documentation claims, real results.
| LibreOffice version | Verdict | Tested |
|---|---|---|
| 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 PERMUTATIONA working in LibreOffice?
PERMUTATIONA 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 PERMUTATIONA working in Google Sheets?
PERMUTATIONA 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
-
=PERMUTATIONA(0,1) on
Excel for the web returned
0, but the documented/expected
result is #NUM!.
Provenance
Microsoft documents: "If numeric arguments are values that are not valid, for example, when the total number is zero (0) and the chosen number is larger than zero (0), PERMUTATIONA returns the #NUM! error value." This is the page's own worked-out example of an invalid argument, quoted exactly. EXECUTED RESULT -- A SILENT WRONG ANSWER: LibreOffice returns 0 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 #NUM! for exactly this input (Microsoft names it as its own example of an invalid argument). 0^1 = 0 is what the bare formula gives, so LibreOffice has applied the equation without the guard the page describes. Together with PERMUT(0,0) returning 1 above, this shows the same pattern twice in one sibling pair: LibreOffice evaluates the closed form where Excel raises the documented error.; MISMATCH vs expected: expected '#NUM!', got 0
-
=PERMUTATIONA(0,0) on
Google Sheets returned
#NUM!, but the documented/expected
result is 1.
Provenance
OpenFormula 1.3 section 6.18.60 is explicit: "The result is 1 if Total = 0 and Chosen = 0, otherwise the result is Total^Chosen." Microsoft's page does not print this row but its error clause is consistent with it -- it names an error only "when the total number is zero (0) and the chosen number is larger than zero (0)", which pointedly does not cover chosen = 0. Note this is the exact input on which PERMUT is documented to return #NUM!, so the two sibling functions are specified to disagree here and this corpus asserts both.; MISMATCH vs expected: expected 1, got '#NUM!'
-
=PERMUTATIONA(0,1) on
LibreOffice Calc returned
0, but the documented/expected
result is #NUM!.
Provenance
Microsoft documents: "If numeric arguments are values that are not valid, for example, when the total number is zero (0) and the chosen number is larger than zero (0), PERMUTATIONA returns the #NUM! error value." This is the page's own worked-out example of an invalid argument, quoted exactly. EXECUTED RESULT -- A SILENT WRONG ANSWER: LibreOffice returns 0 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 #NUM! for exactly this input (Microsoft names it as its own example of an invalid argument). 0^1 = 0 is what the bare formula gives, so LibreOffice has applied the equation without the guard the page describes. Together with PERMUT(0,0) returning 1 above, this shows the same pattern twice in one sibling pair: LibreOffice evaluates the closed form where Excel raises the documented error.; MISMATCH vs expected: expected '#NUM!', got 0
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.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =PERMUTATIONA(3,2) | Microsoft's documented worked example | 9 | 9ProvenanceMicrosoft publishes =PERMUTATIONA(3,2) = 9 and enumerates all nine arrangements on the page (4,4 / 4,5 / 4,6 / 5,4 / 5,5 / 5,6 / 6,4 / 6,5 / 6,6). DERIVATION from the documented equation, which is n^k with repetition allowed: 3^2 = 9 exactly, in integer arithmetic. The contrast with PERMUT(3,2) = 6 is the whole point of the function -- repetition permitted versus not -- and both are asserted in this batch. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/permutationa-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 |
| =PERMUTATIONA(2,2) | Microsoft's second documented row | 4 | 4ProvenanceMicrosoft publishes =PERMUTATIONA(2,2) = 4 and again enumerates the arrangements (3,3 / 3,5 / 5,3 / 5,5). 2^2 = 4. |
Matched |
| =PERMUTATIONA(3.9,2.9) | Fractional arguments, which the page says are truncated | 9 | 9ProvenanceMicrosoft documents: "Both arguments are truncated to integers." 3.9 and 2.9 truncate to 3 and 2, giving 3^2 = 9; an engine that rounded would return 4^3 = 64. |
Matched |
| =PERMUTATIONA(0,0) | The empty case, which OpenFormula defines as 1 | 1 | 1ProvenanceOpenFormula 1.3 section 6.18.60 is explicit: "The result is 1 if Total = 0 and Chosen = 0, otherwise the result is Total^Chosen." Microsoft's page does not print this row but its error clause is consistent with it -- it names an error only "when the total number is zero (0) and the chosen number is larger than zero (0)", which pointedly does not cover chosen = 0. Note this is the exact input on which PERMUT is documented to return #NUM!, so the two sibling functions are specified to disagree here and this corpus asserts both. |
Matched |
| =PERMUTATIONA(0,1) | The documented invalid case | 0 | #NUM!ProvenanceMicrosoft documents: "If numeric arguments are values that are not valid, for example, when the total number is zero (0) and the chosen number is larger than zero (0), PERMUTATIONA returns the #NUM! error value." This is the page's own worked-out example of an invalid argument, quoted exactly. EXECUTED RESULT -- A SILENT WRONG ANSWER: LibreOffice returns 0 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 #NUM! for exactly this input (Microsoft names it as its own example of an invalid argument). 0^1 = 0 is what the bare formula gives, so LibreOffice has applied the equation without the guard the page describes. Together with PERMUT(0,0) returning 1 above, this shows the same pattern twice in one sibling pair: LibreOffice evaluates the closed form where Excel raises the documented error. |
Mismatch |
| =PERMUTATIONA("x",2) | A non-numeric argument | #VALUE! | #VALUE!ProvenanceMicrosoft documents: "If numeric arguments use data types that are nonnumeric, PERMUTATIONA returns the #VALUE! error value." |
Matched |
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.
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =PERMUTATIONA(3,2) | Microsoft's documented worked example | 9 | 9ProvenanceMicrosoft publishes =PERMUTATIONA(3,2) = 9 and enumerates all nine arrangements on the page (4,4 / 4,5 / 4,6 / 5,4 / 5,5 / 5,6 / 6,4 / 6,5 / 6,6). DERIVATION from the documented equation, which is n^k with repetition allowed: 3^2 = 9 exactly, in integer arithmetic. The contrast with PERMUT(3,2) = 6 is the whole point of the function -- repetition permitted versus not -- and both are asserted in this batch. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/permutationa-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 |
| =PERMUTATIONA(2,2) | Microsoft's second documented row | 4 | 4ProvenanceMicrosoft publishes =PERMUTATIONA(2,2) = 4 and again enumerates the arrangements (3,3 / 3,5 / 5,3 / 5,5). 2^2 = 4. |
Matched |
| =PERMUTATIONA(3.9,2.9) | Fractional arguments, which the page says are truncated | 9 | 9ProvenanceMicrosoft documents: "Both arguments are truncated to integers." 3.9 and 2.9 truncate to 3 and 2, giving 3^2 = 9; an engine that rounded would return 4^3 = 64. |
Matched |
| =PERMUTATIONA(0,0) | The empty case, which OpenFormula defines as 1 | #NUM! | 1ProvenanceOpenFormula 1.3 section 6.18.60 is explicit: "The result is 1 if Total = 0 and Chosen = 0, otherwise the result is Total^Chosen." Microsoft's page does not print this row but its error clause is consistent with it -- it names an error only "when the total number is zero (0) and the chosen number is larger than zero (0)", which pointedly does not cover chosen = 0. Note this is the exact input on which PERMUT is documented to return #NUM!, so the two sibling functions are specified to disagree here and this corpus asserts both. |
Mismatch |
| =PERMUTATIONA(0,1) | The documented invalid case | #NUM! | #NUM!ProvenanceMicrosoft documents: "If numeric arguments are values that are not valid, for example, when the total number is zero (0) and the chosen number is larger than zero (0), PERMUTATIONA returns the #NUM! error value." This is the page's own worked-out example of an invalid argument, quoted exactly. EXECUTED RESULT -- A SILENT WRONG ANSWER: LibreOffice returns 0 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 #NUM! for exactly this input (Microsoft names it as its own example of an invalid argument). 0^1 = 0 is what the bare formula gives, so LibreOffice has applied the equation without the guard the page describes. Together with PERMUT(0,0) returning 1 above, this shows the same pattern twice in one sibling pair: LibreOffice evaluates the closed form where Excel raises the documented error. |
Matched |
| =PERMUTATIONA("x",2) | A non-numeric argument | #VALUE! | #VALUE!ProvenanceMicrosoft documents: "If numeric arguments use data types that are nonnumeric, PERMUTATIONA returns the #VALUE! error value." |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =PERMUTATIONA(3,2) | Microsoft's documented worked example | 9 | 9ProvenanceMicrosoft publishes =PERMUTATIONA(3,2) = 9 and enumerates all nine arrangements on the page (4,4 / 4,5 / 4,6 / 5,4 / 5,5 / 5,6 / 6,4 / 6,5 / 6,6). DERIVATION from the documented equation, which is n^k with repetition allowed: 3^2 = 9 exactly, in integer arithmetic. The contrast with PERMUT(3,2) = 6 is the whole point of the function -- repetition permitted versus not -- and both are asserted in this batch. Microsoft's page was re-read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/permutationa-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 |
| =PERMUTATIONA(2,2) | Microsoft's second documented row | 4 | 4ProvenanceMicrosoft publishes =PERMUTATIONA(2,2) = 4 and again enumerates the arrangements (3,3 / 3,5 / 5,3 / 5,5). 2^2 = 4. |
Matched |
| =PERMUTATIONA(3.9,2.9) | Fractional arguments, which the page says are truncated | 9 | 9ProvenanceMicrosoft documents: "Both arguments are truncated to integers." 3.9 and 2.9 truncate to 3 and 2, giving 3^2 = 9; an engine that rounded would return 4^3 = 64. |
Matched |
| =PERMUTATIONA(0,0) | The empty case, which OpenFormula defines as 1 | 1 | 1ProvenanceOpenFormula 1.3 section 6.18.60 is explicit: "The result is 1 if Total = 0 and Chosen = 0, otherwise the result is Total^Chosen." Microsoft's page does not print this row but its error clause is consistent with it -- it names an error only "when the total number is zero (0) and the chosen number is larger than zero (0)", which pointedly does not cover chosen = 0. Note this is the exact input on which PERMUT is documented to return #NUM!, so the two sibling functions are specified to disagree here and this corpus asserts both. |
Matched |
| =PERMUTATIONA(0,1) | The documented invalid case | 0 | #NUM!ProvenanceMicrosoft documents: "If numeric arguments are values that are not valid, for example, when the total number is zero (0) and the chosen number is larger than zero (0), PERMUTATIONA returns the #NUM! error value." This is the page's own worked-out example of an invalid argument, quoted exactly. EXECUTED RESULT -- A SILENT WRONG ANSWER: LibreOffice returns 0 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 #NUM! for exactly this input (Microsoft names it as its own example of an invalid argument). 0^1 = 0 is what the bare formula gives, so LibreOffice has applied the equation without the guard the page describes. Together with PERMUT(0,0) returning 1 above, this shows the same pattern twice in one sibling pair: LibreOffice evaluates the closed form where Excel raises the documented error. |
Mismatch |
| =PERMUTATIONA("x",2) | A non-numeric argument | #VALUE! | #VALUE!ProvenanceMicrosoft documents: "If numeric arguments use data types that are nonnumeric, PERMUTATIONA returns the #VALUE! error value." |
Matched |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation