What is the VAR.S function?
=VAR.S(number1, [number2], ...)VAR.S returns the variance of a sample: the squared distances from the mean, added up and divided by (count-1).
The square root of the variance is the standard deviation (STDEV.S). The last step shows the mean and the divisor.
Variance puts a number on how spread out data is and shows up in quality control and grade analysis. Use VAR.S when you measured a sample and want to estimate the spread of the whole, and VAR.P when you measured everything. Its unit is the original unit squared, so for interpretation people usually look at its square root, the standard deviation.
Arguments
- number1, ...
- Numbers, cells or ranges. Separate several with commas.
VAR.S examples
Example 1. Variance of scores
=VAR.S(B2:D6)The sample variance of 11 numbers.
Example 2. One person
=VAR.S(B4:D4)The variance of 78, 84 and 91.
Example 3. Work it out by hand
=VAR.S(6, 8, 10)The mean is 8. The squared differences add up to 8; dividing by count − 1 = 2 gives 4. VAR.P would divide by 3: about 2.667.
Value Difference from mean Squared 6 -2 4 8 0 0 10 2 4 Total ÷ (3−1) 8 ÷ 2 = 4 Example 4. Microsoft example
=VAR.S(A2:A11)Breaking strengths of 10 tools (1345, 1301, 1368, 1322, 1310, 1370, 1318, 1350, 1303, 1299) give a sample variance of about 754.27.
Common mistakes
Mixing it up with VAR.P
For the whole population use VAR.P, which divides by n.
Units
Variance is in squared units, so it looks large. The standard deviation is easier to read.
Numbers stored as text
Text such as "85" is not counted. Check the number of values with =COUNT(range).
FAQ
- How is it different from VAR?
- VAR is kept for compatibility with older versions.
- Fewer than 2 numbers?
- It returns #DIV/0!.
- How do I get the standard deviation?
- =SQRT(VAR.S(range)) or STDEV.S.