# SUMSQ Function

> Return the sum of the squares of numbers with the SUMSQ formula function of TX Sheet Control: syntax with up to 255 arguments and a worked example.

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

---

Return the sum of the squares of the arguments. SUMSQ squares `number1`, `number2` and each further argument and adds the squares.

### Syntax

```text
SUMSQ(number1, number2)
```

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

Available for supported offline calculation.

### Examples

```text
=SUMSQ(2,3,4)
```

The formula returns 29, which is 2² + 3² + 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:** [SUMPRODUCT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sumproduct/llms-full.txt)
- **Next:** [SUMX2MY2 Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sumx2my2/llms-full.txt)
