totn Excel Functions

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

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

Description

The Microsoft Excel SUMX2MY2 function returns the sum of the difference of squares between two arrays.

The SUMX2MY2 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 SUMX2MY2 function can be entered as part of a formula in a cell of a worksheet.

Syntax

The syntax for the SUMX2MY2 function in Microsoft Excel is:

SUMX2MY2( 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 SUMX2MY2 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 SUMX2MY2 function examples and explore how to use the SUMX2MY2 function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the Excel spreadsheet above, the following SUMX2MY2 examples would return:

=SUMX2MY2(A1:A2, B1:B2)
Result: -10

=SUMX2MY2(D1:D2, E1:E2)
Result: -26

=SUMX2MY2({3,4}, {1,2})
Result: 20

=SUMX2MY2({3,4,5}, {1,2,3})
Result: 36