Skip to content

Latest commit

 

History

History
53 lines (29 loc) · 1.37 KB

Excel.WorksheetFunction.SumX2MY2.md

File metadata and controls

53 lines (29 loc) · 1.37 KB
title keywords f1_keywords api_name ms.assetid ms.date ms.localizationpriority
WorksheetFunction.SumX2MY2 method (Excel)
vbaxl10.chm137208
vbaxl10.chm137208
Excel.WorksheetFunction.SumX2MY2
5c1dee97-5410-2821-350e-d79a19296ef7
05/25/2019
medium

WorksheetFunction.SumX2MY2 method (Excel)

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

Syntax

expression.SumX2MY2 (Arg1, Arg2)

expression A variable that represents a WorksheetFunction object.

Parameters

Name Required/Optional Data type Description
Arg1 Required Variant Array_x - the first array or range of values.
Arg2 Required 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 dimensions, SumX2MY2 returns the #N/A error value.

The equation for the sum of the difference of squares is   Formula

[!includeSupport and feedback]