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], ...)| Argument | What it means | |
|---|---|---|
value1 | Required | A value, reference or range. |
value2, ... | Optional | Up 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Employee | Passed | ||
| 2 | Ana | TRUE | 0.4714 | |
| 3 | Ben | TRUE | ||
| 4 | Chloe | FALSE | ||
| 5 | Dev | TRUE | ||
| 6 | Eva | FALSE | ||
| 7 | Finn | TRUE |
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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Store | Sales (k) | ||
| 2 | North | 12 | 6.0156 | |
| 3 | South | 15 | ||
| 4 | East | closed | ||
| 5 | West | 14 |
Result: 6.0156
"closed" counts as 0, giving 6.015605 (shown to 4 decimals). STDEV.P would ignore East and return 1.2472.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#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.
| Language | Function name |
|---|---|
| Danish | STDAFVPV |
| Finnish | KESKIHAJONTAPA |
| German | STABWNA |
| Hungarian | SZÓRÁSPA |
| Italian | DEV.ST.POP.VALORI |
| Norwegian (Bokmål) | STDAVVIKPA |
| Polish | ODCH.STANDARD.POPUL.A |
| Portuguese (Brazil) | DESVPADPA |
| Portuguese (Portugal) | DESVPADPA |
| Russian | СТАНДОТКЛОНПА |
| Spanish | DESVESTPA |
| Turkish | STDSAPMASA |