Excel function

VAR.Pfunction

Returns the variance of an entire population.

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

Drag the corner dots to change range. Grow and shrink the range and compare with VAR.S. The fewer the values, the bigger the gap. Try breaking it on purpose to see the errors.

Result

30.0165289256

range
B2:D6Drag the corner dots on the table

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

What is the VAR.P function?

=VAR.P(number1, [number2], ...)

VAR.P treats the data as the whole population and returns its variance: the average of the squared distances from the mean.

It divides by the count (n), unlike VAR.S (n-1). Its square root is STDEV.P.

A population is data that covers everything you want to know about: every student in the class, all 12 months of this year's sales, every part in a delivery. When nothing is left to sample, use VAR.P; when you take a sample to estimate the whole, use VAR.S.

Arguments

number1, number2, ...
The population values. Text and blank cells are ignored.

VAR.P examples

  1. Example 1. Variance of all scores

    =VAR.P(B2:D6)

    The variance of the complete data.

  2. Example 2. As a standard deviation

    =SQRT(VAR.P(B2:D6))

    The same as STDEV.P.

  3. Example 3. Compared with a sample

    =VAR.S(B2:D6)

    Divides by n-1, so it is a little larger.

  4. Example 4. Work it out by hand

    =VAR.P(2, 4, 4, 4, 5, 5, 7, 9)

    The mean is 5. The squared differences from 5 add up to 32; dividing by 8 gives 4. The standard deviation (STDEV.P) is its square root, 2.

    ValueDifference from meanSquared
    2-39
    4 (three times)-11 × 3
    5 (twice)00
    724
    9416
    Total ÷ 832 ÷ 8 = 4
  5. Example 5. Microsoft example

    =VAR.P(A2:A11)

    Treating the breaking strengths of 10 tools as the whole population gives 678.84. VAR.S on the same data is about 754.27.

Common mistakes

FAQ

Is it the same as VARP?
VARP is the older compatibility name; VAR.P is the new one.
When P and when S?
P when you have all the data, S when you have a sample of it.