Contact

SUMX2PY2 in Collabora Office: Add Paired Squares and Audit Combined Magnitudes

Array Intermediate Collabora Office Calc

Use Collabora SUMX2PY2 with corresponding numeric arrays, rowwise squared contributions, symmetry checks and two-dimensional controls.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: SUMX2PY2 totals x²+y² over corresponding array entries. With x values 3 and 4 and y values 1 and 2, the expected result is 30, from (9+1)+(16+4).

Availability and version history

  • Introduced: original Collabora release and launch date are not established by the sources reviewed.
  • Availability: documented in Collabora Office 26.04 help, scoped to the desktop-help release.
  • Platform scope: support in every online or mobile deployment is not inferred from desktop documentation.
  • Checked: October 14, 2026. Function-specific documentation and independently derived controls; no native Collabora test was performed.

Syntax and array handling

=SUMX2PY2(arrayX;arrayY)

The Collabora reference specifies two arrays whose corresponding elements are squared and added. The function returns their aggregate, not an array of separate row outputs.

The same product page identifies SUMX2PY2 as having forced array handling for area-reference arguments. The formulas here use equally shaped numeric ranges directly. Examples use English function names and semicolon separators; no inline-array separator assumption is needed.

Example 1: verify every row contribution

Enter this control in A1:C5, with X and Y as the first two headings:

Row A · X B · Y Expected X²+Y²
2 3 1 10
3 4 2 20
4 −2 −1 5
5 0 3 9

Put =A2^2+B2^2 in C2 and fill down. Then calculate elsewhere:

=SUMX2PY2(A2:A5;B2:B5)

Expected result: 44, from 10+20+5+9. The negative source values contribute positive squares; zero contributes nothing to its own square.

Example 2: cross-check the two squared totals

For the original control, the X squares total 29 and the Y squares total 15. Adding those totals gives the same expected result, 44.

Swapping the two source ranges also leaves the result at 44:

=SUMX2PY2(B2:B5;A2:A5)

Addition is symmetric. This contrasts with SUMX2MY2, where swapping arrays reverses the sign of the difference between squared totals.

Advanced example: preserve shape in a two-dimensional check

Create these two 2×2 numeric ranges in E2:F3 and H2:I3:

E:F First column Second column
Row 2 1 2
Row 3 3 4
H:I First column Second column
Row 2 4 3
Row 3 2 1
=SUMX2PY2(E2:F3;H2:I3)

Expected result: 60. The four corresponding contributions are 17, 13, 13 and 17. Each source matrix separately has squared total 30.

These tables contain four numbers each, with matching geometry and no text inside the selected ranges. The headings are explanations, not extra input cells. A mismatched or shifted range is a different test whose native error behavior has not been established here.

Advanced example: distinguish combined magnitude from difference

For two one-dimensional vectors X=(3,4) and Y=(0,5), SUMX2PY2 has expected result 50, from 3²+4²+0²+5². The sum of squared differences is instead 10, from (3−0)²+(4−5)².

Use SUMXMY2 for that difference calculation. Adding individual squares does not measure closeness between the vectors. Two equal nonzero arrays still produce a positive SUMX2PY2 result.

For example, comparing X=(3,4) with itself gives 50, not zero. Negating either array leaves the result unchanged because the signs vanish on squaring.

Mathematical and practical boundaries

For finite real numeric entries, each squared contribution is nonnegative, and the ideal total can be zero only when all included X and Y values are zero. This mathematical property is not a universal native underflow or coercion guarantee.

Keep paired record identities and units consistent. Adding squared quantities with incompatible units may have no useful interpretation even when Calc returns a number. Large values can also overflow on squaring, and small contributions can become insignificant relative to a very large total.

The direct section does not document every blank, text, error or array-shape edge case. Use the explicit small numeric controls first and test required boundary behavior in the actual deployment. Do not infer another product’s handling rules merely from a shared function name.

References and verification

The direct function section and array-handling introduction were reviewed. Worked numeric controls were independently calculated, without native application execution or broader client certification.