# VAR Function

> Estimate the variance of a population from a sample with the VAR compatibility function of TX Sheet Control: which values are counted, #DIV/0! and an example.

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

---

Estimate the variance of a population from a sample. VAR is the compatibility version of [VAR.S](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/var-s/llms-full.txt). Numbers, numeric text and logical values typed as arguments are counted; text and logical values in referenced cells are ignored. Fewer than two numbers return `#DIV/0!`.

### Syntax

```text
VAR(number1, number2)
```

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

Available for supported offline calculation.

### Examples

```text
=VAR(1,2,3)
```

The formula returns 1.

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:** [VALUETOTEXT Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/valuetotext/llms-full.txt)
- **Next:** [VARA Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/vara/llms-full.txt)
