# DCOUNT Function

> Count the numeric cells of a database column whose records match criteria with DCOUNT in TX Sheet Control: database, field by name or position, criteria.

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

---

Count the cells that contain numbers in a column of a database whose records match conditions. `database` is the range of the list, including its header row. `field` is the column to use, as its header text, such as `"Value"`, or as its position in the list, 1 for the first column. `criteria` is a range with one or more headers of the list and the conditions below them; a record must meet them to be included. A column that holds text counts 0. A `field` that is not a header of the list returns `#VALUE!`.

### Syntax

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

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

Available for supported offline calculation.

### Examples

```text
=DCOUNT(D1:E4,"Value",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:** [DBCS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dbcs/llms-full.txt)
- **Next:** [DCOUNTA Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dcounta/llms-full.txt)
