# DAVERAGE Function

> Average the values of a database column whose records match criteria with DAVERAGE 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 > DAVERAGE Function
- **232 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/daverage/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/daverage/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/daverage/llms-full.txt

---

Return the average of the values 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 `field` that is not a header of the list returns `#VALUE!`.

### Syntax

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

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

Available for supported offline calculation.

### Examples

```text
=DAVERAGE(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:** [DATEVALUE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/datevalue/llms-full.txt)
- **Next:** [DAY Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/day/llms-full.txt)
