# SUM Function

> Add numbers, references and arrays with the SUM formula function of TX Sheet Control: up to 255 arguments, how text and logical values count, example.

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

---

Add numbers and ranges. SUM adds `number1`, `number2` and up to 255 arguments, each a number, a reference or an array. Text and logical values in a range are ignored; typed directly as arguments, numeric text such as `"5"` and TRUE are counted as numbers.

### Syntax

```text
SUM(number1, number2)
```

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

Available for supported offline calculation.

### Examples

```text
=SUM(10,20,30)
```

The formula returns 60.

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:** [SUBTOTAL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/subtotal/llms-full.txt)
- **Next:** [SUMIF Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/sumif/llms-full.txt)
