WorksheetFunction.SumX2PY2 (Excel)

Returns the sum of the sum of squares of corresponding values in two arrays. The sum of the sum of squares is a common term in many statistical calculations.

The arguments should be either numbers or names, arrays, or references that contain numbers. If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included. If array_x and array_y have a different number of dimensions, SumX2PY2 returns the #N/A error value. The equation for the sum of the sum of squares is

SumX2PY2 (Arg1, Arg2)


Dim dblSumX2PY2 As Double
dblSumX2PY2 = WorksheetFunction.SumX2PY2(Arg1:=, Arg2:=)

Arguments

Arg1, Arg2

Arg1 - Array_x - the first array or range of values

Arg2 - Array_y - the second array or range of values