# DVAR Function

> Estimate the variance of a sample from matching database records with DVAR in TX Sheet Control: database range, field, criteria and the #DIV/0! case.

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

---

Estimate the variance of a sample from 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!`. Fewer than two matching numbers return `#DIV/0!`.

### Syntax

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

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

Available for supported offline calculation.

### Examples

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

The formula returns the sample variance 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:** [DURATION Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/duration/llms-full.txt)
- **Next:** [DVARP Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/dvarp/llms-full.txt)
