다음을 통해 공유


WorksheetFunction.SumXMY2 Method (Excel)

Returns the sum of squares of differences of corresponding values in two arrays.

Syntax

.SumXMY2(Arg1, Arg2)

A variable that represents a WorksheetFunction object.

Parameters

Name

Required/Optional

Data Type

Description

Arg1

필수

Variant

Array_x - the first array or range of values.

Arg2

필수

Variant

Array_y - the second array or range of values.

Return Value

Double

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, SUMXMY2 returns the #N/A error value.

  • The equation for the sum of squared differences is: Ff194494.awfsumxm_ZA06051252(ko-kr,office.14).gif

참고 항목

개념

WorksheetFunction Object Members

WorksheetFunction Object