STDEVA function
Estimates standard deviation from a sample, 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
STDEVA(value1, [value2], ...)| Argument | What it means | |
|---|---|---|
value1 | Required | A value, reference or range. |
value2, ... | Optional | Up to 254 more values. |
Returns: The sample standard deviation (n − 1) including logical and text values.
How STDEVA works
STDEVA works like STDEV.S, dividing by n − 1, but it includes non-numeric cells that STDEV.S skips. Text in a referenced cell (including "n/a" and numbers stored as text) counts as 0, FALSE counts as 0 and TRUE counts as 1. Empty cells are still ignored.
This is useful when a text entry genuinely means zero, for example "none" in a units column, or when a range of TRUE/FALSE answers should be treated as 1s and 0s. If text entries mean "no data", STDEVA will distort your results badly, because every label becomes a 0 that drags the average down and the spread up.
Examples
1A text answer counted as zero
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Respondent | Rating | ||
| 2 | R1 | 8 | 3.5355 | |
| 3 | R2 | 6 | ||
| 4 | R3 | n/a | ||
| 5 | R4 | 9 | ||
| 6 | R5 | 7 |
Result: 3.5355
"n/a" is treated as 0, so the spread jumps to 3.535534 (shown to 4 decimals). STDEV.S, which ignores the text, returns 1.2910. Here STDEVA is the wrong tool, since n/a is not a rating of zero.
2Yes/no answers as 1 and 0
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Customer | Returned? | ||
| 2 | C1 | TRUE | 0.5477 | |
| 3 | C2 | FALSE | ||
| 4 | C3 | FALSE | ||
| 5 | C4 | TRUE | ||
| 6 | C5 | FALSE |
Result: 0.5477
TRUE = 1 and FALSE = 0, giving 0.547723 (shown to 4 decimals). STDEV.S would ignore every cell and return #DIV/0!.
Common errors and how to fix them
| Error | Why it happens | Fix |
|---|---|---|
#DIV/0! | Fewer than two non-empty values. | Provide at least two values. |
#VALUE! | A typed argument is text that cannot be read as a number. | Use cell references. |
Tips
- Before using STDEVA, decide what each text entry should mean; if it means "missing", use STDEV.S.
- For a whole population with the same treatment of text and logicals use STDEVPA.
Google Sheets
STDEVA also exists in Google Sheets and works the same way for everyday use, so the examples above work there too.
STDEVA 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 | STDAFVV |
| Finnish | KESKIHAJONTAA |
| German | STABWA |
| Hungarian | SZÓRÁSA |
| Italian | DEV.ST.VALORI |
| Norwegian (Bokmål) | STDAVVIKA |
| Polish | ODCH.STANDARDOWE.A |
| Portuguese (Brazil) | DESVPADA |
| Portuguese (Portugal) | DESVPADA |
| Russian | СТАНДОТКЛОНА |
| Spanish | DESVESTA |
| Turkish | STDSAPMAA |