Skip to main content
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
Show menu Show menu

VAR function


Variance function. VAR(range) computes the sample variance s2 of the data in the specified range.

$$s^2 = \frac{\sum_{}^{}{(x-\bar{x})^2}}{n-1} $$

The argument range can be a list of numbers, cell addresses, cell ranges (such as A1:A10).

Range can also be a matrix. In that case the function returns a matrix with one row and the same number of columns, with each element the VAR of the corresponding column. If Range is a row matrix, it is converted to a column matrix first.


VAR(A1:A8) calculates the 'sample' variance of the contents of cells A1 to A8.

VAR function



Related functions