Contact

Zoho Sheet SUMXMY2: Squared Errors, MSE and RMSE

Mathematical Intermediate Zoho Sheet

Calculate paired squared errors in Zoho Sheet, compare two predictions on the same measurements and see why mismatched row order changes the result.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

Quick answer: =SUMXMY2(B2:B6;A2:A6) returns 30 for the measurement and prediction pairs below. Each predicted value is compared with the actual value in the same row, and each difference is squared before addition.

Availability and version history

  • Introduced: The original introduction release and date are not established by the checked sources.
  • Availability: Currently documented in Zoho Sheet’s rolling web-service help; no numbered release or retirement endpoint is established.
  • Scope: English-language web-service documentation. Exact mobile and offline-client parity is not established here.
  • Checked: October 14, 2026, against the official SUMXMY2 reference. Documentation and independent exact-arithmetic models; no native Zoho Sheet test.

Syntax and the paired-difference rule

=SUMXMY2(x; y)

Zoho documents two arrays or ranges of corresponding values. Both inputs are supplied; its scalar example =SUMXMY2(9;8) returns 1, the square of 9−8.

The subtraction occurs before the square. It is not x²−y², and the total cannot be negative for ordinary real numeric pairs. Reversing both arrays’ roles preserves the squared differences, although it reverses the sign of the unsquared differences.

Use complete, aligned numeric ranges for the following worksheet. The brief entry does not settle all mixed-type, missing-pair or shape-mismatch behavior. Examples use Zoho’s semicolon separator.

Practice worksheet: predicted versus measured length

Create a blank sheet named PredictionErrors. Put Actual cm, Prediction A cm, Signed error and Squared error in A1:D1. Enter A2:B6:

Row Actual A Prediction B Expected C Expected D
2 20 22 2 4
3 35 32 -3 9
4 30 31 1 1
5 45 45 0 0
6 50 46 -4 16

Enter =B2-A2 in C2 and =C2^2 in D2, then fill C2:D2 through row 6. Use G for result labels and H for these formulas:

Cell Formula Expected result
H2 =SUMXMY2(B2:B6;A2:A6) 30
H3 =SUM(D2:D6) 30
H4 =SUMXMY2(A2:A6;B2:B6) 30
H5 =H2/5 6
H6 =SQRT(H5) 2.4494897428 approximately
H7 =SUM(C2:C6) -4
H8 =H7/5 -0.8
H9 =SUMXMY2(B2:B3;A2:A3) 13
H10 =SUMXMY2(B4:B6;A4:A6) 17

H9 and H10 partition the same five pairs; 13+17 reproduces the total 30. This fixture is original example data, not a reconstruction of the separate embedded range in Zoho’s help page.

MSE, RMSE and signed bias answer different questions

H5 is mean squared error 6 cm², using five complete pairs. H6 is root mean squared error, approximately 2.4494897428 cm. The SQRT function restores the measurement unit after the squared errors have been averaged.

H8 is a mean signed error of −0.8 cm. It shows a net tendency toward underprediction in this small fixture, but its magnitude does not measure all individual discrepancies. Positive and negative errors partly cancel before that average.

Do not replace the five-pair denominator with n−1 or n−2 without specifying a different statistical objective. SUMXMY2 itself returns only the total squared discrepancy; it does not choose a variance estimator, fit a model or estimate a confidence interval.

Advanced: compare a second prediction on exactly the same cases

Keep A:H unchanged. Put Prediction B cm, Error B and Squared error B in J1:L1. Enter 21,36,29,43,48 in J2:J6. Enter =J2-A2 in K2 and =K2^2 in L2; fill K2:L2 through row 6.

Expected K values are 1,1,−1,−2,−2; L values are 1,1,1,4,4. Put =SUMXMY2(J2:J6;A2:A6) in N2; expect 11. Put =N2/5 in N3; expect 2.2 cm². Put =SQRT(N3) in N4; expect approximately 1.4832396974 cm.

Prediction B has the smaller squared error and RMSE on these five same observations. That does not establish better performance on unseen cases or a fair comparison when models are evaluated on different subsets. The fixture supplies equal weights and no missing observations.

Row identity matters even when both ranges have five numbers

On a separate sheet named WrongPairing, put Prediction A and Reversed actual in A1:B1. Enter 22,32,31,45,46 in A2:A6 and 50,45,30,35,20 in B2:B6. The second list is the original actual column reversed on its own.

Enter =(A2-B2)^2 in C2 and fill to C6. Expected squared differences are 784,169,1,100,676. Enter =SUMXMY2(A2:A6;B2:B6) in E2; expect 1730. In E3 enter =SUM(C2:C6); expect the same 1730.

The original values are still present, but their correspondences have been lost. Sorting two columns independently can therefore create a dramatic error even when their lengths match. Keep a shared observation ID when joining or sorting real measurements.

On a new sheet named ErrorControls, enter =SUMXMY2(9;8) in B2, =SUMXMY2(8;9) in B3 and =SUMXMY2(9;9) in B4. Expected results are 1,1,0. A zero squared discrepancy means equality for the supplied pairs, not proof that a prediction process will always be exact.

The short help’s generic error table does not define every native outcome for empty cells, text, logical values, size differences or propagated errors. It also does not publish an overflow threshold. Preserve numeric inputs and full stored precision, and examine individual squared terms when a result surprises you.

SUMX2MY2 is the signed difference of squares, which can cancel. SUMX2PY2 is the combined squared magnitude. SUMSQ can check an already computed error column, while SUM gives its signed total.