# COUNTA Function

> Count the nonempty cells and values, including text, logical values and errors, with the COUNTA formula function of TX Sheet Control: what counts.

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

---

Count the values that are not empty, including text, numbers, logical values and errors. Each `value` argument is a value, a cell or a range, for up to 255 arguments. Only empty cells are left out: a cell with a space or with a formula that returns empty text counts.

### Syntax

```text
COUNTA(value1, value2)
```

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

Available for supported offline calculation.

### Examples

```text
=COUNTA(A4:A6)
```

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:** [COUNT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/count/llms-full.txt)
- **Next:** [COUNTBLANK Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/countblank/llms-full.txt)
