SUMSQ Function (OpenOffice Calc)
Learn the SUMSQ function in Apache OpenOffice Calc: Returns the sum of the squares of the arguments.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Availability and version history
- Introduced: Documented by Apache OpenOffice 4.1.16; original introduction not established.
- Availability: Supported in Apache OpenOffice 4.1.16, verified against its function registry. This identifies a supported release, not a final working version.
- Scope: Desktop Calc, using the English function name. Availability in other spreadsheet applications is separate.
- Checked: 2026-10-14 — function reference; versioned support. Documentation/source check; not a new native test. Existing example-specific test claims below retain their stated scope.
SUMSQ adds the squares of its numeric inputs. It is different from squaring their sum: cross terms are absent. Positive and negative values of the same magnitude contribute the same square, so the result does not preserve the sign of individual observations.
Syntax and arguments
=SUMSQ(number_1; number_2; ...)
The retained help describes up to 30 arguments, including numeric values and references/ranges. Ordinary text and empty cells reached through references do not contribute numeric squares. Direct string arguments follow the inspected no-value error path rather than being assumed equivalent to referenced text. Use a clearly numeric range for reproducible calculations. Examples use English function names and semicolon argument separators.
Reproducible examples
| Formula | Expected result |
|---|---|
=SUMSQ(3;4) |
25 |
=SUMSQ(-3;4) |
25 |
=SUMSQ(0;0) |
0 |
=SUMSQ(1;2;3) |
14 |
=SUMSQ(1.5;2.5) |
8.5 |
=SUMSQ(2;-2) |
8 |
The first formula preserves the original example and result. Its historical comparable LibreOffice 25.2 check was not an OpenOffice test. New values are independently checked reference expectations; no fresh native application or GUI result is claimed. Quoted results indicate text, including "" for zero-length text.
Practical worksheet: summarize squared residuals
Enter observed values 12, 9 and 15 in A2:A4, and corresponding predictions 10, 10 and 13 in B2:B4. In C2 enter =A2-B2 and fill down. Residuals are 2, -1 and 2. =SUMSQ(C2:C4) returns 9. A manual square column D2==C2^2, filled down, contains 4, 1 and 4 and sums to the same 9.
The squared total gives more weight to larger residual magnitudes. It does not say whether predictions are systematically too high or low, because the residual signs disappear. Keep the residual column for that separate question.
Advanced applications
Distinguish squared sum from sum of squares. For values 3 and 4, SUMSQ gives 25 while (3+4)^2 gives 49. For 2 and -2, the sum is zero but SUMSQ is 8. Cancellation of signs in a sum does not cancel squared magnitudes.
Calculate a root-mean-square value. For the three residuals 2,-1,2, =SQRT(SUMSQ(C2:C4)/COUNT(C2:C4)) is sqrt(3), approximately 1.732051. This is an RMS calculation over three numeric observations, not automatically a sample standard deviation. Its denominator and interpretation must fit the intended statistic.
Check scaling. Multiplying every residual by 2 multiplies the sum of squares by 4: values 4,-2,4 give 36 instead of 9. This exposes unit errors when one dataset is scaled differently. The squared result carries squared units until a square root is applied.
Errors, edge cases and troubleshooting
An empty/text-only referenced range contributes no numeric squares and yields zero in the inspected accumulation path. That zero should not be mistaken for proof that every required observation was supplied. Check numeric counts when missing values matter. A range containing errors is not a safe way to ignore those errors; the iterator records error states.
A numeric-looking direct string is not automatically accepted by the direct-string branch. Do not extrapolate a range’s ignored-text behavior to all literal arguments. The source has separate scalar, cell, range and matrix paths; this guide does not certify every array or import coercion.
Large magnitudes can overflow when squared even if an unsquared sum would remain finite. Floating-point accumulation can also lose small contributions beside much larger terms. No native extreme-input or compensated-summation guarantee is claimed. Use scaled quantities when the underlying numerical method calls for them, keep original inputs, and distinguish a raw sum of squares from centered sums used in variance formulas.
Related functions
Documentation and verification
See the Apache OpenOffice SUMSQ reference, 4.1.16 math help, core numeric predicates and aggregation, Roman conversion, and Analysis callbacks. The original core/help/Analysis snapshots were retrieved October 13, 2026 and re-read for this guide. Additional retained header evidence is identified separately in the batch records. First introduction and final functioning version remain unknown, separate from documented 4.1.16 support. Source rules and independent arithmetic are not native tests.