# COUNT Function

> Count the cells and values that contain numbers with the COUNT formula function of TX Sheet Control: how text, logical values, errors and dates count.

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

---

Count the cells that contain numbers. Each `value` argument is a value, a cell or a range, for up to 255 arguments. In a cell or range, only numbers count, including dates; text, logical values, errors and empty cells are ignored, even text that looks like a number. A value typed directly as an argument counts when it is a number, a logical value or text that represents a number.

### Syntax

```text
COUNT(value1, value2)
```

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

Available for supported offline calculation.

### Examples

```text
=COUNT(B4:D6)
```

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:** [COTH Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/coth/llms-full.txt)
- **Next:** [COUNTA Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/counta/llms-full.txt)
