Statistical function

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], ...)
ArgumentWhat it means
value1RequiredA value, reference or range.
value2, ...OptionalUp 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

D2fx=STDEVA(B2:B6)
ABCD
1RespondentRating
2R183.5355
3R26
4R3n/a
5R49
6R57

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

D2fx=STDEVA(B2:B6)
ABCD
1CustomerReturned?
2C1TRUE0.5477
3C2FALSE
4C3FALSE
5C4TRUE
6C5FALSE

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!.

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

Common errors and how to fix them

ErrorWhy it happensFix
#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.

LanguageFunction name
DanishSTDAFVV
FinnishKESKIHAJONTAA
GermanSTABWA
HungarianSZÓRÁSA
ItalianDEV.ST.VALORI
Norwegian (Bokmål)STDAVVIKA
PolishODCH.STANDARDOWE.A
Portuguese (Brazil)DESVPADA
Portuguese (Portugal)DESVPADA
RussianСТАНДОТКЛОНА
SpanishDESVESTA
TurkishSTDSAPMAA