SUMX2PY2
Quirk foundCategory: Math and trigonometry · Last tested 2026-09-01
Real compatibility results for the SUMX2PY2 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) | Supported, behaves as documented |
| Google Sheets | Yes | Yes (Drive import, 2026-08-31) | Supported, behaves as documented |
| 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 SUMX2PY2’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 SUMX2PY2 working in LibreOffice?
SUMX2PY2 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.
Discovered quirks
-
=SUMX2PY2({1,2,3},{1,2}) on
LibreOffice Calc returned
#VALUE!, but the documented/expected
result is #N/A.
Provenance
The Remarks publish: "If array_x and array_y have a different number of values, SUMX2PY2 returns the #N/A error value."; MISMATCH vs expected: expected '#N/A', got '#VALUE!'
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 |
|---|---|---|---|---|
| =SUMX2PY2(A3:A9,B3:B9) | Microsoft's first documented row | 521 | 521ProvenanceMicrosoft publishes =SUMX2PY2(A3:A9,B3:B9) = 521. DERIVATION in exact integer arithmetic: sum of x^2 = 4+9+81+1+64+49+25 = 233; sum of y^2 = 36+25+121+49+25+16+16 = 288; 233 + 288 = 521. This page's range citation is correct -- its data sits in rows 3-9 and it says A3:A9 -- which is what showed the SUMX2MY2 page's A2:A8 to be a slip over the identical table. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/sumx2py2-function. FETCH NOTE FOR THIS BATCH: batch F recorded every /en-us/office/<name>-function-<guid> URL returning Microsoft's 'Sorry, the page you're looking for can't be found' body; today BOTH paths serve the article again -- the GUID form redirects to /en-us/excel/functions/<slug>-function -- and every page cited in this batch came back complete (217-223 KB) in one or two attempts, with no 87 KB stub responses. Nothing here is sourced from a search snippet or a mirror. |
Matched |
| =SUMX2PY2({2,3,9,1,8,7,5},{6,5,11,7,5,4,4}) | Microsoft's second documented row, as array constants | 521 | 521ProvenanceMicrosoft publishes =SUMX2PY2({2,3,9,1,8,7,5}, {6,5,11,7,5,4,4}) = 521, the same value as the range row -- which is the cross-check that the range row cites the right rows. |
Matched |
| =SUMX2PY2({1,2,3},{1,2}) | Arrays of different lengths, which the page assigns an error code | #N/A | #N/AProvenanceThe Remarks publish: "If array_x and array_y have a different number of values, SUMX2PY2 returns the #N/A error value." |
Matched |
| =SUMX2PY2({2,3,9},{6,5,11})-(SUMSQ(2,3,9)+SUMSQ(6,5,11)) | The definition checked against the engine's own SUMSQ | 0 | 0ProvenanceSUMX2PY2(x,y) = SUMSQ(x) + SUMSQ(y) by definition. No constant from us; fails for any engine that differences rather than sums. |
Matched |
| =SUMX2PY2({3},{4}) | A single 3-4-5 pair, where the answer is the square of the hypotenuse | 25 | 25Provenance3^2 + 4^2 = 25 exactly. A structural assertion with no derived constant, chosen because the answer is recognisable on sight and an off-by-one in the array pairing cannot produce it. |
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 |
|---|---|---|---|---|
| =SUMX2PY2(A3:A9,B3:B9) | Microsoft's first documented row | 521 | 521ProvenanceMicrosoft publishes =SUMX2PY2(A3:A9,B3:B9) = 521. DERIVATION in exact integer arithmetic: sum of x^2 = 4+9+81+1+64+49+25 = 233; sum of y^2 = 36+25+121+49+25+16+16 = 288; 233 + 288 = 521. This page's range citation is correct -- its data sits in rows 3-9 and it says A3:A9 -- which is what showed the SUMX2MY2 page's A2:A8 to be a slip over the identical table. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/sumx2py2-function. FETCH NOTE FOR THIS BATCH: batch F recorded every /en-us/office/<name>-function-<guid> URL returning Microsoft's 'Sorry, the page you're looking for can't be found' body; today BOTH paths serve the article again -- the GUID form redirects to /en-us/excel/functions/<slug>-function -- and every page cited in this batch came back complete (217-223 KB) in one or two attempts, with no 87 KB stub responses. Nothing here is sourced from a search snippet or a mirror. |
Matched |
| =SUMX2PY2({2,3,9,1,8,7,5},{6,5,11,7,5,4,4}) | Microsoft's second documented row, as array constants | 521 | 521ProvenanceMicrosoft publishes =SUMX2PY2({2,3,9,1,8,7,5}, {6,5,11,7,5,4,4}) = 521, the same value as the range row -- which is the cross-check that the range row cites the right rows. |
Matched |
| =SUMX2PY2({1,2,3},{1,2}) | Arrays of different lengths, which the page assigns an error code | #N/A | #N/AProvenanceThe Remarks publish: "If array_x and array_y have a different number of values, SUMX2PY2 returns the #N/A error value." |
Matched |
| =SUMX2PY2({2,3,9},{6,5,11})-(SUMSQ(2,3,9)+SUMSQ(6,5,11)) | The definition checked against the engine's own SUMSQ | 0 | 0ProvenanceSUMX2PY2(x,y) = SUMSQ(x) + SUMSQ(y) by definition. No constant from us; fails for any engine that differences rather than sums. |
Matched |
| =SUMX2PY2({3},{4}) | A single 3-4-5 pair, where the answer is the square of the hypotenuse | 25 | 25Provenance3^2 + 4^2 = 25 exactly. A structural assertion with no derived constant, chosen because the answer is recognisable on sight and an off-by-one in the array pairing cannot produce it. |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =SUMX2PY2(A3:A9,B3:B9) | Microsoft's first documented row | 521 | 521ProvenanceMicrosoft publishes =SUMX2PY2(A3:A9,B3:B9) = 521. DERIVATION in exact integer arithmetic: sum of x^2 = 4+9+81+1+64+49+25 = 233; sum of y^2 = 36+25+121+49+25+16+16 = 288; 233 + 288 = 521. This page's range citation is correct -- its data sits in rows 3-9 and it says A3:A9 -- which is what showed the SUMX2MY2 page's A2:A8 to be a slip over the identical table. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/sumx2py2-function. FETCH NOTE FOR THIS BATCH: batch F recorded every /en-us/office/<name>-function-<guid> URL returning Microsoft's 'Sorry, the page you're looking for can't be found' body; today BOTH paths serve the article again -- the GUID form redirects to /en-us/excel/functions/<slug>-function -- and every page cited in this batch came back complete (217-223 KB) in one or two attempts, with no 87 KB stub responses. Nothing here is sourced from a search snippet or a mirror. |
Matched |
| =SUMX2PY2({2,3,9,1,8,7,5},{6,5,11,7,5,4,4}) | Microsoft's second documented row, as array constants | 521 | 521ProvenanceMicrosoft publishes =SUMX2PY2({2,3,9,1,8,7,5}, {6,5,11,7,5,4,4}) = 521, the same value as the range row -- which is the cross-check that the range row cites the right rows. |
Matched |
| =SUMX2PY2({1,2,3},{1,2}) | Arrays of different lengths, which the page assigns an error code | #VALUE! | #N/AProvenanceThe Remarks publish: "If array_x and array_y have a different number of values, SUMX2PY2 returns the #N/A error value." |
Mismatch |
| =SUMX2PY2({2,3,9},{6,5,11})-(SUMSQ(2,3,9)+SUMSQ(6,5,11)) | The definition checked against the engine's own SUMSQ | 0 | 0ProvenanceSUMX2PY2(x,y) = SUMSQ(x) + SUMSQ(y) by definition. No constant from us; fails for any engine that differences rather than sums. |
Matched |
| =SUMX2PY2({3},{4}) | A single 3-4-5 pair, where the answer is the square of the hypotenuse | 25 | 25Provenance3^2 + 4^2 = 25 exactly. A structural assertion with no derived constant, chosen because the answer is recognisable on sight and an off-by-one in the array pairing cannot produce it. |
Matched |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation
Where SUMX2PY2 behaves differently
- Every error code LibreOffice reports as #VALUE!
Across our 2,334-case executed corpus, 272 cases in 135 functions return #VALUE! in LibreOffice Calc 25.8.7.3 where Microsoft documents #NUM! (244), #N/A (15), #DIV/0! (10) or #REF! (3). Google Sheets returns the documented code on 239 of the 249 it has a function for. Identical in all four LibreOffice builds tested.