ExcelFlux

SUMXMY2 function

the sum of squares of differences 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 squared differences between matched readings to compare the discrepancies between two series.

A worked example from the workbook

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

Expected result14

See the inputs and instructions for all 3 examples

Copyable formulas

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

Worked examples

Sum squared differences between matched readings to compare the discrepancies between two series.

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 =SUMXMY2(A7:A9,B7:B9) 14
Record 2 =SUMXMY2(A7:A8,B7:B8) 5
Record 3 =SUMXMY2(A8:A9,B8:B9) 13
Microsoft Excel reference