# AVERAGEA Function

> Calculate the mean of values including logical values and text with AVERAGEA in TX Sheet Control: TRUE as 1, FALSE and text as 0, empty cells and an example.

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

---

Return the arithmetic mean of values, counting logical values and text. Unlike AVERAGE, AVERAGEA includes every non-empty value: TRUE counts as 1, FALSE and text in a range as 0. Empty cells are ignored.

### Syntax

```text
AVERAGEA(value1, value2)
```

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

Available for supported offline calculation.

### Examples

```text
=AVERAGEA(1,TRUE,3)
```

The formula returns 1.6666666667, the mean of 1, 1 (TRUE) and 3.

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:** [AVERAGE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/average/llms-full.txt)
- **Next:** [AVERAGEIF Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/averageif/llms-full.txt)
