SUMX2MY2 Function
Return the sum of the differences of the squares of corresponding values in two arrays. For each pair of values, SUMX2MY2 subtracts the square of the value in array2 from the square of the value in array1, and adds the differences. Arrays of different sizes return #VALUE!.
Syntax
SUMX2MY2(array1, array2)
Category: Math. Minimum arguments: 2. Maximum arguments: 2.
Available for supported offline calculation.
Examples
=SUMX2MY2({1,2},{3,4})
The formula returns -20, 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.