WorksheetFunction.DevSq (Excel)

Returns the sum of squares of deviations of data points from their sample mean.

Arguments can either be numbers or names, arrays, or references that contain numbers. Logical values and text representations of numbers that you type directly into the list of arguments are counted. If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included. Arguments that are error values or text that cannot be translated into numbers cause errors. The equation for the sum of squared deviations is

DevSq (Arg1, Arg2, ..., Arg30)

Dim dblDevSq As Double
dblDevSq = WorksheetFunction.DevSq(Arg1:=)


Arg1, Arg2, ..., Arg30