SUMXMY2
Quirk foundCategory: Math and trigonometry · Last tested 2026-09-01
Real compatibility results for the SUMXMY2 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 SUMXMY2’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 SUMXMY2 working in LibreOffice?
SUMXMY2 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
-
=SUMXMY2({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 do not have the same number of values, SUMXMY2 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 |
|---|---|---|---|---|
| =SUMXMY2(A3:A9,B3:B9) | Microsoft's first documented row | 79 | 79ProvenanceMicrosoft publishes =SUMXMY2(A3:A9,B3:B9) = 79. DERIVATION in exact integer arithmetic: the pairwise differences are -4,-2,-2,-6,3,3,1 and their squares are 16,4,4,36,9,9,1, summing to 79. Like SUMX2PY2 and unlike SUMX2MY2, this page's range citation matches its own data rows. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/sumxmy2-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 |
| =SUMXMY2({2,3,9,1,8,7,5},{6,5,11,7,5,4,4}) | Microsoft's second documented row, as array constants | 79 | 79ProvenanceMicrosoft publishes =SUMXMY2({2, 3, 9, 1, 8, 7, 5}, {6, 5, 11, 7, 5, 4, 4}) = 79, matching the range row. |
Matched |
| =SUMXMY2({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 do not have the same number of values, SUMXMY2 returns the #N/A error value." |
Matched |
| =SUMXMY2({2,3,9},{6,5,11})-SUMXMY2({6,5,11},{2,3,9}) | Squaring the difference makes the function symmetric in its two arguments | 0 | 0Provenance(x-y)^2 = (y-x)^2, so SUMXMY2 must be symmetric while SUMX2MY2 must ANTI-symmetric. A structural assertion with no derived constant, and the one that most sharply separates the two names: the same swap applied to SUMX2MY2 would give -88 - 88 = -176, not 0. |
Matched |
| =SUMXMY2({2,3,9},{6,5,11})-SUMPRODUCT(({2,3,9}-{6,5,11})^2) | The definition checked against the engine's own SUMPRODUCT over an array expression | 0 | 0ProvenanceSUMXMY2(x,y) = SUMPRODUCT((x-y)^2) by definition. No constant from us. This case also exercises array arithmetic inside SUMPRODUCT, so a #VALUE! here would point at the array handling rather than at SUMXMY2 -- worth reading alongside the two simpler cases above before concluding anything about SUMXMY2 itself. |
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 |
|---|---|---|---|---|
| =SUMXMY2(A3:A9,B3:B9) | Microsoft's first documented row | 79 | 79ProvenanceMicrosoft publishes =SUMXMY2(A3:A9,B3:B9) = 79. DERIVATION in exact integer arithmetic: the pairwise differences are -4,-2,-2,-6,3,3,1 and their squares are 16,4,4,36,9,9,1, summing to 79. Like SUMX2PY2 and unlike SUMX2MY2, this page's range citation matches its own data rows. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/sumxmy2-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 |
| =SUMXMY2({2,3,9,1,8,7,5},{6,5,11,7,5,4,4}) | Microsoft's second documented row, as array constants | 79 | 79ProvenanceMicrosoft publishes =SUMXMY2({2, 3, 9, 1, 8, 7, 5}, {6, 5, 11, 7, 5, 4, 4}) = 79, matching the range row. |
Matched |
| =SUMXMY2({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 do not have the same number of values, SUMXMY2 returns the #N/A error value." |
Matched |
| =SUMXMY2({2,3,9},{6,5,11})-SUMXMY2({6,5,11},{2,3,9}) | Squaring the difference makes the function symmetric in its two arguments | 0 | 0Provenance(x-y)^2 = (y-x)^2, so SUMXMY2 must be symmetric while SUMX2MY2 must ANTI-symmetric. A structural assertion with no derived constant, and the one that most sharply separates the two names: the same swap applied to SUMX2MY2 would give -88 - 88 = -176, not 0. |
Matched |
| =SUMXMY2({2,3,9},{6,5,11})-SUMPRODUCT(({2,3,9}-{6,5,11})^2) | The definition checked against the engine's own SUMPRODUCT over an array expression | 0 | 0ProvenanceSUMXMY2(x,y) = SUMPRODUCT((x-y)^2) by definition. No constant from us. This case also exercises array arithmetic inside SUMPRODUCT, so a #VALUE! here would point at the array handling rather than at SUMXMY2 -- worth reading alongside the two simpler cases above before concluding anything about SUMXMY2 itself. |
Matched |
LibreOffice Calc 25.8.7.3 (tested 2026-08-31)
| Formula | Description | Result | Expected | Verdict |
|---|---|---|---|---|
| =SUMXMY2(A3:A9,B3:B9) | Microsoft's first documented row | 79 | 79ProvenanceMicrosoft publishes =SUMXMY2(A3:A9,B3:B9) = 79. DERIVATION in exact integer arithmetic: the pairwise differences are -4,-2,-2,-6,3,3,1 and their squares are 16,4,4,36,9,9,1, summing to 79. Like SUMX2PY2 and unlike SUMX2MY2, this page's range citation matches its own data rows. Microsoft's page was read live on 2026-08-31 at https://support.microsoft.com/en-us/excel/functions/sumxmy2-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 |
| =SUMXMY2({2,3,9,1,8,7,5},{6,5,11,7,5,4,4}) | Microsoft's second documented row, as array constants | 79 | 79ProvenanceMicrosoft publishes =SUMXMY2({2, 3, 9, 1, 8, 7, 5}, {6, 5, 11, 7, 5, 4, 4}) = 79, matching the range row. |
Matched |
| =SUMXMY2({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 do not have the same number of values, SUMXMY2 returns the #N/A error value." |
Mismatch |
| =SUMXMY2({2,3,9},{6,5,11})-SUMXMY2({6,5,11},{2,3,9}) | Squaring the difference makes the function symmetric in its two arguments | 0 | 0Provenance(x-y)^2 = (y-x)^2, so SUMXMY2 must be symmetric while SUMX2MY2 must ANTI-symmetric. A structural assertion with no derived constant, and the one that most sharply separates the two names: the same swap applied to SUMX2MY2 would give -88 - 88 = -176, not 0. |
Matched |
| =SUMXMY2({2,3,9},{6,5,11})-SUMPRODUCT(({2,3,9}-{6,5,11})^2) | The definition checked against the engine's own SUMPRODUCT over an array expression | 0 | 0ProvenanceSUMXMY2(x,y) = SUMPRODUCT((x-y)^2) by definition. No constant from us. This case also exercises array arithmetic inside SUMPRODUCT, so a #VALUE! here would point at the array handling rather than at SUMXMY2 -- worth reading alongside the two simpler cases above before concluding anything about SUMXMY2 itself. |
Matched |
Docs & syntax
- Excel (desktop): official documentation
- Google Sheets: official documentation
- LibreOffice Calc: official documentation
Where SUMXMY2 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.