Calculates the sample variance of the values in a data set.
Syntax:
VAR(list)
Returns the sample variance of the values in the list.
list may be an array, a range of cells, or a comma-separated list of values.
Formula:
VAR = (n⋅∑i=n (xi2) − (∑i=n xi)2) ÷ (n⋅(n − 1))
where n is the number of values and xi is the i-th value.
Example:
VAR(A1:A15)
returns the variance of the contents of cells in the range A1:A15
.