=SUMXMY2(Array1, Array2)
=SUMXMY2(A3:A9,B3:B9)
The SUMXMY2 function can be used to calculate the sum of squares of differences between two arrays. In this example, we will calculate the sum of squares of differences between two arrays of numbers: A3:A9 and B3:B9. The result of this calculation will be the sum of the squares of the differences between the values in the two arrays.
=SUMXMY2({2, 3, 9, 1, 8, 7, 5}, {6, 5, 11, 7, 5, 4, 4})
The SUMXMY2 function can also be used to calculate the sum of squares of differences between two constants. Here, we will calculate the sum of squares of differences between two constants, {2, 3, 9, 1, 8, 7, 5} and {6, 5, 11, 7, 5, 4, 4}. The result of this calculation will be the sum of the squares of the differences between the values in the two constants.
=SUMXMY2(B2:B6,C2:C6)
The SUMXMY2 function can also be used to calculate the sum of squares of differences between two ranges. Here, we will calculate the sum of squares of differences between two ranges, B2:B6 and C2:C6. The result of this calculation will be the sum of the squares of the differences between the values in the two ranges.
The SUMXMY2 function calculates the sum of the squares of the differences between corresponding values in two arrays or references. It can only use numerical values and ignores text, logical values and empty cells.