# DCOUNTA Function

> Count the nonblank cells in a column of the matching database records with DCOUNTA in TX Sheet Control: database range, field, criteria range and errors.

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

---

Count the nonblank cells in a column of the records that match the criteria. `database` is the range of records with the field names in its first row, `field` the column to use, by its name in quotes or its position number, and `criteria` a range with field names in its first row and the conditions below them. A field name that is not in the database returns `#VALUE!`.

### Syntax

```text
DCOUNTA(database, field, criteria)
```

Category: Database. Minimum arguments: 3. Maximum arguments: 3.

Available for supported offline calculation.

### Examples

```text
=DCOUNTA(D1:E4,"Value",G1:G2)
```

The formula counts the nonblank cells of the Value column in the records of D1:E4 that match the criteria in G1:G2.

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:** [DCOUNT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dcount/llms-full.txt)
- **Next:** [DDB Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/ddb/llms-full.txt)
