Statistical function

VARPA function

Returns the variance of an entire population, counting text as 0 and TRUE as 1 instead of ignoring them.

Available in All versions of Excel, including Microsoft 365 and Excel for the web

In every Excel versionWorks in Google Sheets

Syntax

VARPA(value1, [value2], ...)
ArgumentWhat it means
value1RequiredA value, reference or range.
value2, ...OptionalUp to 254 more values.

Returns: The population variance (divides by n) including text and logical values.

How VARPA works

VARPA is the population counterpart of VARA: it divides by n, like VAR.P, and in referenced ranges counts TRUE as 1 and FALSE or text as 0. Empty cells are ignored.

A neat use is the variance of a yes/no outcome across a complete group. For a column of TRUE/FALSE flags, VARPA returns p × (1 − p), where p is the share of TRUE values. That is the variance of a Bernoulli variable, the building block of proportion statistics.

Examples

1On-time deliveries for the whole month

D2fx=VARPA(B2:B8)
ABCD
1DeliveryOn time
2D1TRUE0.2041
3D2TRUE
4D3FALSE
5D4TRUE
6D5FALSE
7D6TRUE
8D7TRUE

Result: 0.2041

Five of seven deliveries were on time (p = 5/7). The variance is p × (1 − p) = 0.204082 (shown to 4 decimals).

2A text entry as zero

D2fx=VARPA(B2:B5)
ABCD
1StoreReturns
2North45
3Southnone
4East2
5West6

Result: 5

Values 4, 0, 2, 6 give a population variance of 5. VAR.P would ignore "none" and return 2.6667.

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

Common errors and how to fix them

ErrorWhy it happensFix
#DIV/0!No values.Check the range.
#VALUE!A typed argument is text that cannot be read as a number.Use references.

Tips

  • The standard deviation version is STDEVPA.
  • Use VAR.P when text should be ignored rather than counted as 0.

Google Sheets

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

VARPA 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
DanishVARIANSPV
GermanVARIANZENA
ItalianVAR.POP.VALORI
Norwegian (Bokmål)VARIANSPA
PolishWARIANCJA.POPUL.A
RussianДИСПРА
TurkishVARSA