Statistical function

STDEVPA function

Returns the standard deviation of a whole 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

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

Returns: The population standard deviation (divides by n), including logical and text values.

How STDEVPA works

STDEVPA is the population version of STDEVA. It divides by n like STDEV.P, but in referenced ranges it treats TRUE as 1 and both FALSE and text as 0, rather than skipping them. Empty cells are ignored.

Use it when the data covers the whole group and non-numeric entries carry a real value: a complete list of stores where "closed" means zero sales, or pass/fail flags for every employee. When text means "unknown", STDEV.P is the safer choice.

Examples

1Pass/fail for every employee

D2fx=STDEVPA(B2:B7)
ABCD
1EmployeePassed
2AnaTRUE0.4714
3BenTRUE
4ChloeFALSE
5DevTRUE
6EvaFALSE
7FinnTRUE

Result: 0.4714

Four TRUE (1) and two FALSE (0) for the whole team give 0.471405 (shown to 4 decimals), which equals √(p × (1 − p)) with p = 2/3.

2A closed store as zero sales

D2fx=STDEVPA(B2:B5)
ABCD
1StoreSales (k)
2North126.0156
3South15
4Eastclosed
5West14

Result: 6.0156

"closed" counts as 0, giving 6.015605 (shown to 4 decimals). STDEV.P would ignore East and return 1.2472.

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

Common errors and how to fix them

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

Tips

  • Compare STDEVPA with STDEV.P: if they differ, text or logical cells are influencing the result.
  • Use STDEVA instead if your data is only a sample.

Google Sheets

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

STDEVPA 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
DanishSTDAFVPV
FinnishKESKIHAJONTAPA
GermanSTABWNA
HungarianSZÓRÁSPA
ItalianDEV.ST.POP.VALORI
Norwegian (Bokmål)STDAVVIKPA
PolishODCH.STANDARD.POPUL.A
Portuguese (Brazil)DESVPADPA
Portuguese (Portugal)DESVPADPA
RussianСТАНДОТКЛОНПА
SpanishDESVESTPA
TurkishSTDSAPMASA