WorksheetFunction.SumX2MY2(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the sum of the difference of squares of corresponding values in two arrays.
public:
double SumX2MY2(System::Object ^ Arg1, System::Object ^ Arg2);
public double SumX2MY2 (object Arg1, object Arg2);
Public Function SumX2MY2 (Arg1 As Object, Arg2 As Object) As Double
Parameters
- Arg1
- Object
Array_x - the first array or range of values.
- Arg2
- Object
Array_y - the second array or range of values.
Returns
Remarks
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 values, SumX2MY2returns the #N/A error value.
The equation for the sum of the difference of squares is:
Figure 1: Equation for the sum of the difference of squares