ID EN
#Statistical

DEVSQ

Excel Functions

Get sum of squared deviations

Syntax

EXCEL
=DEVSQ(number1, [number2], ...)

Arguments

Parameter Description
number1 First value or reference.
number2 [optional] Second value or reference.

Return Value

Calculated sum

Details

The Excel DEVSQ function calculates the sum of the squared deviations from the mean for a given set of data. Variance and standard deviation functions deal with negative deviations by squaring deviations before they are averaged. DEVSQ calculates the sum of the squared deviations from the mean, without dividing by N or by N-1. The DEVSQ function takes multiple arguments in the form number1, number2, number3, etc. up to 255 total. Arguments can be a hardcoded constant, a cell reference, or a range. A single range or array can be provided instead of multiple arguments. In the example shown, the formula in G5 is: The formulas in C5 and D5 are, respectively: The value in D12 (34) is simply the sum of D5:D10, and agrees with the value calculated directly by DEVSQ in G5.

Examples

Examples

In the example shown, the formula in G5 is:

EXCEL
=DEVSQ(B5:B10)
Examples

The formulas in C5 and D5 are, respectively:

EXCEL
=B5-$G$4 // deviation
=C5^2 // squared deviation

See Also

AVERAGE STDEV VAR AVEDEV