SUMSQ in Excel: Sum Squared Values and Measure Residual Size
Calculate Excel sums of squares, distinguish square-of-sum errors and derive root-mean-square and residual controls with explicit type limits.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: SUMSQ squares each participating number and adds those squares. =SUMSQ(3,4) has independently expected result 25, from 9+16. It is not the square of 3+4, which would be 49.
Availability and version history
- Introduced: First introduction version is not established by the official history reviewed.
- Availability: official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac, Excel 2021, Excel 2021 for Mac, Excel 2019, Excel 2016.
- Checked: October 14, 2026; official SUMSQ reference. Documentation and independently calculated examples; no native Excel execution or broader platform certification.
Syntax and direct versus referenced inputs
=SUMSQ(number1, [number2], ...)
Microsoft permits up to 255 arguments; arrays and references may replace an explicit list. Directly typed logical values and numeric text are documented as included, while a referenced range uses numeric cells and excludes text, logical values and empties.
The current reference also contains potentially confusing error wording: it lists errors as ignored in references but warns that error arguments cause errors. This guide does not certify an error-containing range from those brief statements. All successful numeric controls below avoid that disputed boundary.
Example 1: keep the squares separate
Enter numeric 3, 4, -2 in A2:A4:
=SUMSQ(A2:A4)
=SUM(A2:A4)^2
Expected results are 29 and 25. The first is 3²+4²+(-2)²=9+16+4. The second is (3+4-2)²=5².
The negative value contributes a positive square. Cancellation in the raw sum does not cancel squared contributions. For the pair 5 and -5, SUM is zero but SUMSQ has expected result 50.
Example 2: compare direct numeric text with a cell
Set C2:C4 to numeric 3, formula =“4”, and formula =TRUE():
=SUMSQ(C2:C4)
=SUMSQ(3,"4",TRUE)
Expected results are 9 and 26 under the documented reference/direct distinction. The range includes only numeric three; the direct call includes 3²+4²+1².
Changing C3 to numeric four makes the range expectation 25, with the referenced logical TRUE still excluded. Display formatting alone is not a proof that text digits have become numeric.
Advanced example: calculate a two-dimensional distance
A point at coordinates (2,3) and another at (8,11) differ by six horizontally and eight vertically. Their Euclidean distance is:
=SQRT(SUMSQ(8-2,11-3))
Expected result: 10, from √(36+64). SQRT takes the square root after the components are squared and added.
This assumes both coordinates use compatible units and an ordinary flat-coordinate model. It is not a geographic distance formula for latitude/longitude degrees, and changing a sign does not change a squared component’s contribution.
Advanced example: inspect residuals and root-mean-square
Put numeric residuals 2, -1, 3, -2 in E2:E5. Their sum is two, but =SUMSQ(E2:E5) has expected result 18. A small signed total can hide substantial positive and negative deviations.
For these four numeric observations:
=SQRT(SUMSQ(E2:E5)/COUNT(E2:E5))
Expected root-mean-square: approximately 2.121320344, from √(18/4). This is not automatically a sample standard deviation, a standard error or an unbiased model-error estimate. Those statistics depend on centering and the appropriate degrees of freedom.
The arithmetic mean residual is 0.5. Centering the four residuals gives 1.5, -1.5, 2.5 and -2.5, whose sum of squares is 17. Squared raw values and squared deviations from the mean answer related but different questions.
Advanced check: compare a scalar expansion
The original A2:A4 control can be expanded as =A2^2+A3^2+A4^2, with expected result 29. That transparent expression is useful for checking a small finite dataset; it does not reproduce SUMSQ’s complete type-handling rules for arbitrary text or errors.
Squaring doubles the unit exponent: residuals measured in meters produce a sum in square meters. Taking a root after averaging returns to meters. Keep these units visible when comparing reports or thresholds.
Troubleshooting
Check whether the intended calculation is a sum of squares, a square of a sum, or a sum of squared differences. Do not change the formula solely because a positive result was expected; squares are nonnegative even when the inputs are signed.
An entirely nonnumeric range, imported errors and extreme magnitudes are outside these finite examples. Large squares can stress numerical precision, so a plausible small control is not a guarantee for every scale of workbook.
References and verification
Worked inputs are fictional. Decimal answers are independently calculated mathematical expectations rounded to nine places, not captured native results. Extreme magnitudes, complete coercion matrices and cross-version numerical accuracy remain untested.