Excel function

VAR.Sfunction

Returns the variance of a sample (the squared spread).

All versions
=VAR.S(B2:D6)
A
B
C
D
1
2
3
4
5
6

Drag the corner dots to change range. Squaring the STDEV.S result gives VAR.S. Try breaking it on purpose to see the errors.

Result

33.0181818182

range
B2:D6Drag the corner dots on the table

The cells to calculate. Cells that are not numbers are ignored.

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

  1. Example 1. Variance of scores

    =VAR.S(B2:D6)

    The sample variance of 11 numbers.

  2. Example 2. One person

    =VAR.S(B4:D4)

    The variance of 78, 84 and 91.

  3. 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.

    ValueDifference from meanSquared
    6-24
    800
    1024
    Total ÷ (3−1)8 ÷ 2 = 4
  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

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.