ExcelFunctions.net Logo

The Excel SUMXMY2 Function

Home » Excel-Built-In-Functions » Excel-Math-Functions » Excel-Sumxmy2-Function
Search this site:
Custom Search

Basic Description

Related Function: 

The Excel Sumxmy2 function returns the sum of the squares of differences between corresponding values in two supplied arrays. I.e.

Equation for Sum of Squares of Differences

The format of the Sumxmy2 function is:

SUMXMY2( array_x, array_y )

where the array arguments are two sets of numeric values, which may be supplied to the function either directly, or as one or more cells or ranges of cells containing numeric values. These two supplied arrays must be of equal length.

Note that, if any of the values supplied to the functions are non-numeric (including cells containing text representations of numbers), these values, and the corresponding value in the other array are ignored.

 Formulas
Examples of use of the Excel Sumxmy2 Function
 Results
Excel Sumxmy2 Function Results

Sumxmy2 Function Examples

The spreadsheets on the right show 2 examples of the Sumxmy2 function.

The format of the functions are shown in the top spreadsheet and the resulting values are shown in the spreadsheet below.

Note that the example in cell C3 shows that the array arguments can be supplied directly to the function, as well as in the form of arrays of cells


Further information and examples of the Excel Sumxmy2 function can be found on the Microsoft Office website


Trouble Shooting

If you get an error from the Excel Sumxmy2 Function, this is likely to be the #N/A error:

Common Error
#N/A - Occurs if the two supplied arrays have different lengths (i.e. contain different numbers of values)





Valid XHTML 1.0 Transitional

Disclaimer Privacy Policy

Copyright © 2008-2011 ExcelFunctions.net