
The Excel VAR.S function returns the variance of a sample. If data represents the entire population, use the VAR.P function. VAR.S ignores text values and logicals in references.
Get variation of a sample
Computed variance
=VAR.S (number1, [number2], ...)
The VAR.S function calculates the variance of a sample of data. Variance provides a general idea of the spread of data. The VAR.S function can accept up to 254 arguments.
Note while VAR.S ignores text and logicals passed into as cell references, it will evaluate logical values, and text representations of numbers hardcoded directly as arguments. In other words, VAR.S will ignore FALSE when it appears in a range like A1:A10, but will evaluate FALSE when it is provided as an argument.
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.S function returns the variance of a sample. If data represents the entire population, use the VAR.P function. VAR.S ignores text values and logicals in references.
Get variation of a sample
Computed variance
=VAR.S (number1, [number2], ...)
The VAR.S function calculates the variance of a sample of data. Variance provides a general idea of the spread of data. The VAR.S function can accept up to 254 arguments.
Note while VAR.S ignores text and logicals passed into as cell references, it will evaluate logical values, and text representations of numbers hardcoded directly as arguments. In other words, VAR.S will ignore FALSE when it appears in a range like A1:A10, but will evaluate FALSE when it is provided as an argument.
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 |