
The Excel VAR function estimates the variance of a sample of data. If data represents the entire population, use the VARP function or the newer VAR.P function. VAR ignores text values and logicals in references.
Get variation of a sample
Computed variance
=VAR (number1, [number2], ...)
The VAR function estimates the variance for a sample of data. Variance provides a general idea of the spread of data. In the example shown, the formula in F4 is:
=VAR(C5:C10)
VAR ignores text and logicals passed into as cell references. For example, VAR will ignore FALSE when it appears in a range like A1:A10. However, VAR will evaluate logical values, and text representations of numbers hardcoded directly as arguments.
Note: Microsoft classifies VAR as a "compatibility function", now replaced by the VAR.S function.
The table below summarizes the variation functions available in Excel.
| Name | Data set | Text and logicals |
|---|---|---|
| VAR | Sample | Ignored |
| VARP | Population | Ignored |
| VAR.S | Sample | Ignored |
| VAR.P | Population | Ignored |
| VARA | Sample | Evaluated |
| VARPA | Population | Evaluated |

The Excel VAR function estimates the variance of a sample of data. If data represents the entire population, use the VARP function or the newer VAR.P function. VAR ignores text values and logicals in references.
Get variation of a sample
Computed variance
=VAR (number1, [number2], ...)
The VAR function estimates the variance for a sample of data. Variance provides a general idea of the spread of data. In the example shown, the formula in F4 is:
=VAR(C5:C10)
VAR ignores text and logicals passed into as cell references. For example, VAR will ignore FALSE when it appears in a range like A1:A10. However, VAR will evaluate logical values, and text representations of numbers hardcoded directly as arguments.
Note: Microsoft classifies VAR as a "compatibility function", now replaced by the VAR.S function.
The table below summarizes the variation functions available in Excel.
| Name | Data set | Text and logicals |
|---|---|---|
| VAR | Sample | Ignored |
| VARP | Population | Ignored |
| VAR.S | Sample | Ignored |
| VAR.P | Population | Ignored |
| VARA | Sample | Evaluated |
| VARPA | Population | Evaluated |