DEVSQ
Returns the sum of squared deviations from the mean.
DEVSQ is useful for variance-related calculations and diagnostics of spread.
The Formualizer engine in this repository at 0.15.0 plus unreleased changes computes the example results. Known differences from Excel are listed on this page.
Syntax
=DEVSQ(number1, [number2], ...)
Arguments
| Argument | Type | Required | Default |
|---|---|---|---|
number1 | number (range) | Required | — |
number2 | number (range) | Optional | — |
Accepts a variable number of arguments. Minimum: 1.
Remarks
- Non-numeric values in referenced ranges are ignored.
- Uses the arithmetic mean of included values.
Error cases
- Returns
#NUM!when no numeric values are available.
Examples
Find the sum of squared deviations from the mean of 4, 8 and 12.
Formula =DEVSQ(4,8,12)
Expected result 32
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Pass one three-element array to compute the sum of squared deviations from the mean.
Formula =DEVSQ({4,8,12})
Expected result 32
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
The sole squared deviation from the mean is zero.
Formula =DEVSQ(7)
Expected result 0
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
A division error among 4 and 12 prevents computing the sum of squared deviations from the mean.
Formula =DEVSQ(4,1/0,12)
Expected result #DIV/0!
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Sum of squared deviations from scalar values
Formula =DEVSQ(2,4,6)
Expected result 8
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.
Sum of squared deviations from a range
Formula =DEVSQ(A1:A4)
| A | |
|---|---|
| 1 | 1 |
| 2 | 2 |
| 3 | 3 |
| 4 | 4 |
Expected result 5
Try this formula
This editor runs the published Formualizer 0.14.0 package, so the last digits can differ and functions newer than that release return #NAME?.