# AVERAGE Function

> Calculate the arithmetic mean of numbers, arrays and ranges with the AVERAGE formula function of TX Sheet Control: ignored text and logical values and #DIV/0!.

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

---

Return the arithmetic mean of numbers: their sum divided by their count. Each `number` argument is a number, an array or a range. Text and logical values in ranges and arrays are ignored, while logical values typed as arguments count (TRUE as 1). When there is no number to average, AVERAGE returns `#DIV/0!`.

### Syntax

```text
AVERAGE(number1, number2)
```

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

Available for supported offline calculation.

### Examples

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

The formula returns 20.

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:** [AVEDEV Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/avedev/llms-full.txt)
- **Next:** [AVERAGEA Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/averagea/llms-full.txt)
