Statistical function

VAR.P function

Returns the variance of an entire population: the average squared distance of each value from the mean.

Available in Excel 2010 and later, Microsoft 365, Excel for the web, Excel for Mac 2011 and later

Excel 2010 and laterWorks in Google Sheets

Syntax

VAR.P(number1, [number2], ...)
ArgumentWhat it means
number1RequiredA number, reference or range covering the whole population.
number2, ...OptionalUp to 254 more values.

Returns: The population variance σ² (in squared units).

How VAR.P works

Variance measures spread. For each value Excel takes its distance from the mean, squares it (so negatives do not cancel positives and big deviations count more), and averages those squares. VAR.P divides by n, which is right when the data covers the whole population, every store, every employee, every month of the year in question.

Because the deviations are squared, variance is in squared units ("units²"), which is hard to interpret directly; the square root, STDEV.P, brings it back to the original units. Variance is still important because variances of independent quantities add up, which makes it the workhorse of risk and portfolio calculations. For samples use VAR.S. Text, logical values and empty cells in ranges are ignored.

Examples

1Variance of daily output for a full week

D2fx=VAR.P(B2:B7)
ABCD
1DayUnits
2Mon529.6667
3Tue48
4Wed55
5Thu50
6Fri45
7Sat50

Result: 9.6667

The mean is 50. The squared deviations average to 9.666667 (shown to 4 decimals), so the standard deviation is about 3.11 units.

2Check: variance is the squared standard deviation

D2fx=STDEV.P(B2:B7)^2
ABCD
1DayUnits
2Mon529.6667
3Tue48
4Wed55
5Thu50
6Fri45
7Sat50

Result: 9.6667

Squaring STDEV.P returns the same 9.6667 (shown to 4 decimals), confirming the relationship.

⬇Practice workbookExamples with live formulas + practice sheets · .xlsx · 14 KB

Common errors and how to fix them

ErrorWhy it happensFix
#DIV/0!No numbers in the arguments.Check the range.
#VALUE!A typed argument is text that is not a number.Use references.

Tips

  • VARP is the older name of the same function.
  • Use VARPA if text and TRUE/FALSE should be counted as 0 and 1.

Google Sheets

VAR.P also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.

VAR.P in other languages

In a non-English version of Excel the function has a local name. Excel translates formulas automatically when a file is opened in another language.

LanguageFunction name
DanishVARIANS.P
FrenchVAR.P.N
HungarianVAR.S
Norwegian (Bokmål)VARIANS.P
PolishWARIANCJA.POP
RussianДИСП.Г
SwedishVARIANS.P