# DEVSQ Function

> Return the sum of the squared deviations of numbers from their mean with DEVSQ in TX Sheet Control: numbers, ranges and arrays as arguments and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > DEVSQ Function
- **185 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/devsq/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/devsq/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/devsq/llms-full.txt

---

Return the sum of the squared deviations of numbers from their mean. `number1`, `number2` and further arguments, up to 255, are numbers, ranges or arrays. Text that is not a number returns `#VALUE!`.

### Syntax

```text
DEVSQ(number1, number2)
```

Category: Statistics. Minimum arguments: 1. Maximum arguments: 255.

Available for supported offline calculation.

### Examples

```text
=DEVSQ(1,3,5)
```

The formula returns 8: the mean is 3, and the squared deviations are 4, 0 and 4.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [DETECTLANGUAGE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/detectlanguage/llms-full.txt)
- **Next:** [DGET Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dget/llms-full.txt)
