Modifying this control will update this page automatically
Formulas and Functions Help
- Welcome
- Intro to formulas and functions
-
- ACCRINT
- ACCRINTM
- BONDDURATION
- BONDMDURATION
- COUPDAYBS
- COUPDAYS
- COUPDAYSNC
- COUPNUM
- CUMIPMT
- CUMPRINC
- CURRENCY
- CURRENCYCODE
- CURRENCYCONVERT
- CURRENCYH
- DB
- DDB
- DISC
- EFFECT
- FV
- INTRATE
- IPMT
- IRR
- ISPMT
- MIRR
- NOMINAL
- NPER
- NPV
- PMT
- PPMT
- PRICE
- PRICEDISC
- PRICEMAT
- PV
- RATE
- RECEIVED
- SLN
- STOCK
- STOCKH
- SYD
- VDB
- YIELD
- YIELDDISC
- YIELDMAT
-
- AVEDEV
- AVERAGE
- AVERAGEA
- AVERAGEIF
- AVERAGEIFS
- BETADIST
- BETAINV
- BINOMDIST
- CHIDIST
- CHIINV
- CHITEST
- CONFIDENCE
- CORREL
- COUNT
- COUNTA
- COUNTBLANK
- COUNTIF
- COUNTIFS
- COVAR
- CRITBINOM
- DEVSQ
- EXPONDIST
- FDIST
- FINV
- FORECAST
- FREQUENCY
- GAMMADIST
- GAMMAINV
- GAMMALN
- GEOMEAN
- HARMEAN
- INTERCEPT
- LARGE
- LINEST
- LOGINV
- LOGNORMDIST
- MAX
- MAXA
- MEDIAN
- MIN
- MINA
- MODE
- NEGBINOMDIST
- NORMDIST
- NORMINV
- NORMSDIST
- NORMSINV
- PERCENTILE
- PERCENTRANK
- PERMUT
- POISSON
- PROB
- QUARTILE
- RANK
- SLOPE
- SMALL
- STANDARDIZE
- STDEV
- STDEVA
- STDEVP
- STDEVPA
- TDIST
- TINV
- TTEST
- VAR
- VARA
- VARP
- VARPA
- WEIBULL
- ZTEST
![](https://help.apple.com/assets/5CF5A8C5680CE21F509CDBD2/5CF5A9AA680CE221509CCC5C/en_GB/448f4087c5ac01cada09ea787f9c6267.png)
SUMXMY2
The SUMXMY2 function returns the sum of the squares of the differences between corresponding values in two collections.
SUMXMY2(set-1-values, set-2-values)
set-1-values: A collection containing the first set of number values.
set-2-values: A collection containing the second set of number values.
Example |
---|
Given the following table: |
A | B | |
---|---|---|
1 | 2 | 7 |
2 | 9 | 5 |
3 | 3 | 6 |
4 | 11 | 8 |
5 | 1 | 12 |
6 | 5 | 9 |
=SUMXMY2(A1:A6, B1:B6) returns 196, the sum of the squares of the differences of the values in set-1-values (the collection A1:A6) and the values in set-2-values (the collection B1:B6). The formula for the first such difference is (A1 – B1)2 or (2 – 7)2, which is 25. |
Thanks for your feedback.