Formualizer Docs

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

ArgumentTypeRequiredDefault
number1number (range)Required—
number2number (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)

Input cells
A
11
2"x"
32

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?.

FAQ

How does SUMSQ treat text cells in ranges?

Non-numeric range cells are ignored, while explicit errors are propagated.

Implementation

Engine source

On this page