1. Home
  2. Functions
  3. Math
  4. SUMXMY2

SUMXMY2 function

Returns the sum of the squares of the differences of matching values in two arrays.

Syntax

=SUMXMY2(array_x, array_y)

Arguments

ArgumentRequiredDescription
array_xRequiredThe first range or array
array_yRequiredThe second range or array

How to use SUMXMY2

SUMXMY2 takes 2 required arguments. Type =SUMXMY2( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=SUMXMY2({2,3,9,1,8,7,5}, {6,5,11,7,5,4,4})Result 79

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.