# DEVSQ

Spread for WinForms provides advanced software components that support Excel import/export, full cell customization, an extensive calculation engine with over 450 functions and more, all with zero dependencies on Excel.

## Content



This function calculates the sum of the squares of deviations of data points (or of an array of data points) from their sample mean.

## Syntax

DEVSQ(*value1*,*value2*, ...)
DEVSQ(*array*)
DEVSQ(*array1*,*array2*,...)

## Arguments

Each argument can be a double-precision floating-point value, an integer value, or an array (cell range) of these. Up to 255 arguments may be included. You can use a single array (cell range) instead of a list of values. You can use multiple arrays (cell ranges) as well.

## Remarks

This is a measure of the variability in a data set.
The sum of squared deviations is calculated as follows, where *n* is the number of values.
![DEVSQ Equation](https://cdn.mescius.io/document-site-files/images/0ed25d3e-6b2a-4cf0-8f1b-7ed5ab18cf12/artwork/func-devsq.png)
If an array or cell reference argument contains text, logical values, or empty cells, the function ignores those values; however, the function includes in calculations cells with the value zero.

## Data Types

Accepts numeric data for all arguments or array of numeric data. Returns numeric data.

#### Examples

`DEVSQ(B3,B5,B9,B10)`
`DEVSQ(B3:B14)`
`DEVSQ(R3C2,R5C2,R9C2)`
`DEVSQ(R3C2:R3C12)`
`DEVSQ(35,31,47,51,37,31,58,39)` gives the result 680.875

## Version Available

This function is available in product version 1.0 or later.

## See Also

[AVEDEV](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsAtoC/FunctionAVEDEV) \| [AVERAGE](/spreadnet/docs/latest/online-formula/formulas-functionsall/formulas-functsAtoC/FunctionAVERAGE) \| [Statistical Functions](/spreadnet/docs/latest/online-formula/formulas-overview/formulas-functs/formulas-functtypes/formulas-functsstats)