STDEV function
STDEV returns the sample standard deviation, a measure of how spread out sample data is. It is a compatibility function, so use STDEV.S in new workbooks.
Example
Read it as a sentence: estimate the standard deviation of the sample in A1:A8, which gives 2.138089935.
Excel shows 2.138089935
A
1
2
2
4
3
4
4
4
5
5
6
5
7
7
8
9
Data
Syntax
STDEV(number1, [number2], ...)
Arguments in [square brackets] are optional.
-
number1(required) - A number, range or array (sample).
-
number2(optional) - More values.
Returns: The sample standard deviation.
What Excel actually returns
Each formula below was run in desktop Excel. The result is exactly what the cell showed, errors included.
| Formula | Excel shows | Case |
|---|---|---|
=STDEV({2,4,4,4,5,5,7,9}) | 2.138089935 | Array constant |
=STDEV(10,"20",TRUE) | 9.504384953 | Direct args: number, text-number, TRUE |
=STDEV({1,"2",TRUE,3}) | 1.414213562 | Array with text and boolean |
=STDEV(Data!A1:A8) | 2.138089935 | Range of numbers |
=STDEV(Data!B1:B8) | 15.27525232 | Mixed range: num, text-number, TRUE, blank, text, FALSE |
=STDEV(Data!A1:A4,Data!F1:F5) | 1.301708279 | Two ranges |
=STDEV(10,"abc") | #VALUE! | Direct arg: non-numeric text |
=STDEV(5) | #DIV/0! | Single number |
The Data sheet these formulas read
A cell that starts with = holds that formula.
A
B
F
1
2
10
1
2
4
20
2
3
4
TRUE
3
4
4
4
5
5
abc
5
6
5
30
7
7
FALSE
8
9
40
Data
Watch out for
- Superseded by STDEV.S; use that in new workbooks.
- Uses n-1; for a full population use STDEVP.
- Ignores text and logicals in ranges.
Where it works
- Excel
- STDEV is in every version of Excel from 2007 on. Compatibility function: still works in every version, but newer replacements exist.
- Google Sheets
- Same name, same behaviour for everyday use.
Part of Compatibility functions. Every result on this page was measured in desktop Excel, build 16.0.20527. Last updated .