# COUNTBLANK Function

> Count the empty cells of a range, including formulas that return empty text, with the COUNTBLANK formula function of TX Sheet Control: what counts.

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

---

Count the empty cells in a range, including cells whose formula returns empty text. `range` is the range to check. Cells that contain 0, a space, text or an error are not counted.

### Syntax

```text
COUNTBLANK(range)
```

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

Available for supported offline calculation.

### Examples

```text
=COUNTBLANK(A18:A25)
```

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