SUMSQ
Returns the sum of squares of supplied numbers.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=SUMSQ(number1, [number2], ...)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number1 | number (range) | Required | — |
number2 | number (range) | Optional | — |
Accepts a variable number of arguments. Minimum: 1.
Remarks
- Accepts one or more scalar values, arrays, or ranges.
- For ranges, non-numeric cells are ignored while errors are propagated.
- Date/time-like values in ranges are converted to numeric serial values before squaring.
Examples
Find the sum of squares of 4, 8 and 12.
Formula =SUMSQ(4,8,12)
Expected result 224
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Pass one three-element array to compute the sum of squares.
Formula =SUMSQ({4,8,12})
Expected result 224
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Square 7 without adding any other terms.
Formula =SUMSQ(7)
Expected result 49
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A division error among 4 and 12 prevents computing the sum of squares.
Formula =SUMSQ(4,1/0,12)
Expected result #DIV/0!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Sum squares of scalar arguments
Formula =SUMSQ(3,4)
Expected result 25
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Ignore text cells in a range
Formula =SUMSQ(A1:A3)
| A | |
|---|---|
| 1 | 1 |
| 2 | "x" |
| 3 | 2 |
Expected result 5
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Related functions
FAQ
How does SUMSQ treat text cells in ranges?
Non-numeric range cells are ignored, while explicit errors are propagated.