SUMXMY2
Math

Returns the sum of squares of differences of corresponding values in two arrays

Syntax:

=SUMXMY2(array_x, array_y)

Example:

=SUMXMY2(A1:A10, B1:B10)