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

SUMX2MY2 function

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

Syntax

=SUMX2MY2(array_x, array_y)

Arguments

ArgumentRequiredDescription
array_xRequiredThe first range or array
array_yRequiredThe second range or array

How to use SUMX2MY2

SUMX2MY2 takes 2 required arguments. Type =SUMX2MY2( 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.

=SUMX2MY2({2,3,9,1,8,7,5}, {6,5,11,7,5,4,4})Result -55

Every formula, right in your browser

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