# SUMXMY2

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## Content



This function returns the sum of the square of the differences of corresponding values in two arrays.

## Syntax

SUMXMY2(*array\_x*,*array\_y*)

## Arguments

This function has these arguments:

| **Argument** | **Description** |
| -------- | ----------- |
| *array\_x* | First array of values (x’s) |
| *array\_y* | Second array of values (y’s) |

The arrays must be the same size.

## Data Types

Accepts numeric data for all arguments. Returns numeric data.

## Examples

`SUMXMY2(A1:A17,B1:B17)`

## Version Available

This function is available in product version 1.0 or later.

## See Also

[SUMX2PY2](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsRtoS/FunctionSUMX2PY2) \| [SUMX2MY2](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsRtoS/FunctionSUMX2MY2) \| [SUM](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsRtoS/FunctionSUM) \| [Math and Trigonometry Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsmathtrig)