totn Excel Functions

MS Excel: How to use the SUMXMY2 Function (WS)

This Excel tutorial explains how to use the Excel SUMXMY2 function with syntax and examples.

Description

The Microsoft Excel SUMXMY2 function calculates the sum of the squares of the differences between corresponding items in the arrays and returns the sum of the results.

The SUMXMY2 function is a built-in function in Excel that is categorized as a Math/Trig Function. It can be used as a worksheet function (WS) in Excel. As a worksheet function, the SUMXMY2 function can be entered as part of a formula in a cell of a worksheet.

Syntax

The syntax for the SUMXMY2 function in Microsoft Excel is:

SUMXMY2( array1, array2 )

Parameters or Arguments

array1
The first range or array used in the calculation.
array2
The second range or array used in the calculation.

Returns

The SUMXMY2 function returns a numeric value.

Applies To

  • Excel for Office 365, Excel 2019, Excel 2016, Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Function

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel SUMXMY2 function examples and explore how to use the SUMXMY2 function as a worksheet function in Microsoft Excel:

=SUMXMY2({1,2;3,4}, {5,6;7,8})
Result: 64

The above example would return 64.

You could also reference ranges in Excel.

Microsoft Excel

Based on the Excel spreadsheet above, you could enter the following formula:

=SUMXMY2(A1:B2, D1:E2)
Result: 64

This would also return the value 64.