- Advanced Excel Functions Tutorial
- Advanced Excel Functions - Home
- Compatibility Functions
- Advanced Excel Functions - Cube
- Database Functions
- Date & Time Functions
- Engineering Functions
- Financial Functions
- Information Functions
- Advanced Excel Functions - Logical
- Lookup & Reference Functions
- Math & Trignometric Functions
- Statistical Functions
- Useful Resources
- Quick Guide
- Useful Resources
- Discussion
Compatibility - VAR Function
The VAR function replaces the VAR.S function in Excel 2010.
Description
The function estimates variance based on a sample.
Syntax
VAR (number1,[number2],...)
Arguments
Argument | Description | Required/ Optional |
---|---|---|
Number1 | The first number argument corresponding to a sample of a population. | Required |
Number2, ... | Number arguments 2 to 255 corresponding to a sample of a population. | Optional |
Notes
VAR uses the following formula −
$$\frac{\sum(x-\bar{x})^2}{(n-1)}$$
Where x is the sample mean AVERAGE (number1,number2,…) and n is the sample size.
VAR assumes that its arguments are a sample of the population. If your data represents the entire population, then compute the variance by using VARP.
Arguments can be either numbers or names, arrays, or references that contain numbers.
Logical values and text representations of numbers that you type directly into the list of arguments are counted.
If an argument is an array or reference, only numbers in that array or reference are counted. Empty cells, logical values, text, or error values in the array or reference are ignored.
If you want to include logical values and text representations of numbers in a reference as part of the calculation, use the VARA function.
Arguments that are error values or text that cannot be translated into numbers cause errors.