How to calculate variance in Excel?

In this lesson you will learn how to calculate variance in Excel.

What is the variance?

This variance is a statistical measure of variation. It means that the higher variance the more different values.


Variance in Excel

There are 2 basic functions which you can use to calculate variance in Excel.

VAR – common function which calculates variance in every version of Excel. However since Excel 2010 version this function is started to be improved and replaced by VAR.S. Although this feature is still available

VAR.S - calculates the sample variance of a supplied set of values. This is new function in Excel 2010 and its not working in earlier versions of Excel.


With VAR and VAR.S functions you can calculate variance for sample of values. To calculate variance for whole population of values just use VAR.P function.


Synax of variance functions:




Examples of VAR function in Excel


Example 1 the simplest syntax of variance

As arguments of function you can use just numbers.



Example 2 cells as arguments in formula

Arguments could be also cells where you have some numbers.



Example 3 range of cells as arguments in formula

You can also use range of cells.



Example 4 mix of above examples in one formula

It is not a problem to use every kind of above arguments in one formula.


Excel variance examples

Syntax of VAR.S is the same as VAR.

Related lessons: