Compatibility function

VARP function

Returns the variance of an entire population (divides by n). Replaced by VAR.P.

Available in All versions of Excel, including Microsoft 365 and Excel for the web (kept for compatibility)

In every Excel versionWorks in Google Sheets

Older function. VARP still works, but for new workbooks use VAR.P.

Syntax

VARP(number1, [number2], ...)
ArgumentWhat it means
number1RequiredA number, range or array covering the whole population.
number2, ...OptionalUp to 255 numbers or ranges in total.

Returns: The population variance.

How VARP works

VARP returns the variance when your numbers are the complete population: Σ(x − mean)² / n. Use it for all twelve months of a finished year, every product in a small catalogue, or the full list of a team's players.

It is the square of STDEVP and is always a little smaller than VAR on the same data, because it divides by n instead of n − 1. Text and logical values in ranges are ignored (VARPA counts them).

Compatibility note: VARP is one of the older statistical functions that Excel 2010 moved to the Compatibility group. It still works in every version, but for new workbooks Microsoft recommends VAR.P. VAR.P gives identical results.

Examples

1Variance of a team's goals

D2fx=VARP(B2:B6)
ABCD
1PlayerGoals
2Ali42
3Bo7
4Cy5
5Di8
6Ed6

Result: 2

The mean is 6 and the squared deviations are 4, 1, 1, 4 and 0, totalling 10. Divided by n = 5 the population variance is 2.

2VARP vs VAR

D2fx=VAR(B2:B6)/VARP(B2:B6)
ABCD
1PlayerGoals
2Ali41.25
3Bo7
4Cy5
5Di8
6Ed6

Result: 1.25

VAR divides by 4 and VARP by 5, so their ratio is always n/(n − 1) = 5/4 = 1.25 for five values.

⬇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 contents.

Tips

  • VARP(range) equals STDEVP(range)^2.

Questions

Should I still use VARP?

Only if the workbook must open in Excel 2007 or earlier. Otherwise use VAR.P, which gives the same result and makes the intent clearer to the next person who reads the formula.

Will VARP stop working?

There is no announced removal date. Microsoft keeps compatibility functions so old workbooks keep calculating, but they get no new features.

Google Sheets

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

VARP 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
CzechVAR
DanishVARIANSP
FrenchVAR.P
GermanVARIANZEN
ItalianVAR.POP
Norwegian (Bokmål)VARIANSP
PolishWARIANCJA.POPUL
RussianДИСПР
SwedishVARIANSP
TurkishVARS