TX Sheet Control

SUMXMY2 Function

Function

Return the sum of the squares of the differences of corresponding values in two arrays. For each pair of values, SUMXMY2 squares the difference of the value in array1 and the value in array2, and adds the squares. Arrays of different sizes return #VALUE!.

Syntax

SUMXMY2(array1, array2)

Category: Math. Minimum arguments: 2. Maximum arguments: 2.

Available for supported offline calculation.

Examples

=SUMXMY2({1,2},{3,4})

The formula returns 8, which is (1 − 3)² + (2 − 4)².

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

See Also