Documentation/Calc Functions/VAR

Function name:
VAR

Category:
Statistical Analysis

Summary:
Calculates a sample variance of a set of numbers.

Syntax:
VAR(Number 1 [; Number 2 [; … [; Number 255]]])

Returns:
Returns a non-negative real number which is the estimated sample variance based on the numbers passed in the arguments.

Arguments:
Number 1, Number 2, ..., Number 255 are real numbers, an array of real numbers, reference to a cell or to cell ranges of numbers.


 * The parameters should specify at least two values. If there are less than two values, then the function will return a division (#DIV/0!) error.
 * If any of the arguments contain text values either being passed directly then the function returns a name (#NAME?) error and if passed with double quotes then the function returns an error value (Err:504).
 * If a cell contains text, error value, or empty cells, then the function ignores these values. For logical values, TRUE is considered as 1, and FALSE is considered as 0.
 * If a cell contains 0 then the function includes it.

Additional details:

 * The formula for VAR is:

where xi is Number i, n is the count of xi's and x̄ is mean value.
 * For more details on variance, visit Wikipedia.

Related LibreOffice functions:
[[Special:MyLanguage/Documentation/Calc_Functions/VAR.P VAR.P]

[[Special:MyLanguage/Documentation/Calc_Functions/VAR.S VAR.S]

[[Special:MyLanguage/Documentation/Calc_Functions/VARA VARA]

[[Special:MyLanguage/Documentation/Calc_Functions/VARP VARP]

[[Special:MyLanguage/Documentation/Calc_Functions/VARPA VARPA]

[[Special:MyLanguage/Documentation/Calc_Functions/STDEV STDEV]

[[Special:MyLanguage/Documentation/Calc_Functions/STDEV.P STDEV.P]

[[Special:MyLanguage/Documentation/Calc_Functions/STDEV.S STDEV.S]

[[Special:MyLanguage/Documentation/Calc_Functions/STDEVA STDEVA]

[[Special:MyLanguage/Documentation/Calc_Functions/STDEVP STDEVP]

[[Special:MyLanguage/Documentation/Calc_Functions/STDEVPA STDEVPA]

ODF standard:
Section 6.18.82, part 2

Equivalent Excel functions:
VAR