Syntax
| Parameter | Description |
|---|---|
| number1 | Parameter of the SUMSQ function. |
| [number2 | (Optional.) Parameter of the SUMSQ function. |
| ...] | Parameter of the SUMSQ function. |
Examples
Vector magnitude squared
=SUMSQ(3, 4)
Sum of squared residuals
=SUMSQ(A2:A10)
Multiple arguments
=SUMSQ(2, 5, 7)
Common Errors
Occurs when any argument is text that cannot be converted to a number, such as =SUMSQ("abc").
Occurs if the result is too large for the spreadsheet to handle (extremely rare with normal data).
Tips
Combine with SQRT to calculate Euclidean distance: =SQRT(SUMSQ(x2-x1, y2-y1)) gives the straight-line distance between two points.
For variance calculations, SUMSQ of deviations from the mean is faster than squaring each value individually. Pair it with AVERAGE and COUNT.
You can mix cell ranges and literal numbers: =SUMSQ(A1:A5, 10) squares each cell in A1:A5 plus 10² and sums them all.
Try SUMSQ in Viztab
Import your data and use SUMSQ with 370+ other formulas. No signup required.
Open Viztab