ExcelFlux

SUMX2MY2 function

the sum of the difference of squares of corresponding values in two arrays.

Math and trigonometry

Where can you use it?

Reporting, manufacturing and engineering teams. When a total, rounding step or numerical transformation is needed, use the example to see which operation fits your inputs.

Scenario in the workbook

Sum differences of squares. Reversing the input arrays changes the sign.

A worked example from the workbook

RowAB
6Input readingOutput reading
712
824
936
Record 1
=SUMX2MY2(B7:B9,A7:A9)

Expected result42

See the inputs and instructions for all 3 examples

Copyable formulas

English Excel · en-US
=SUMX2MY2(B7:B9,A7:A9)
Turkish Excel · tr-TR
=TOPX2EY2(B7:B9;A7:A9)

Worked examples

Sum differences of squares. Reversing the input arrays changes the sign.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A B
6 Input reading Output reading
7 1 2
8 2 4
9 3 6
Case Formula Expected result
Record 1 =SUMX2MY2(B7:B9,A7:A9) 42
Record 2 =SUMX2MY2(A7:A9,B7:B9) -42
Record 3 =SUMX2MY2(B7:B8,A7:A8) 15
Microsoft Excel reference