Function · Spread and distribution

Excel STDEV.S function

The Excel STDEV.S function returns the sample standard deviation. The four utility bills spread by about $24.9020 around their average.

Excel 2010 and later, including Microsoft 365 and Excel for the web. The older name STDEV still calculates. Also in Google Sheets.

Syntax =STDEV.S(number1, [number2], ...)

STDEV.S
=STDEV.S(B2:B5)

Arguments

NameRequiredWhat to pass
number1RequiredThe first number or range. These are treated as a sample, not the whole population.
number2OptionalMore numbers or ranges. Text and blanks are ignored. At least two numbers are required.

Examples

Spread of four monthly bills, treated as a sample

=STDEV.S(B2:B5)

Result 24.9020205

=STDEV.S(B2:B5)B6
Utilities
AB
1MonthBill
2Jan143.60
3Feb96.20
4Mar118.45
5Apr88.10
6Sample stdev24.9020205
A picture of the sheet, not a live calculator. Sample means divide by n−1, here 3, not by 4.

STDEV.S measures how far the numbers sit from their average, using the sample formula. The four bills average $111.5875. Their sample standard deviation is 24.9020205, about $24.90. Square that and you get VAR.S, 620.110625. The sum of those squared distances is 1,860.331875, which is SUMSQ of the four distances from the mean. The S means the divisor is n−1. Four bills divide by 3.

Use this when the four months are a sample of a longer history. If those four months are the entire history you care about, STDEV.P divides by 4 and returns 21.56578236. Text and blanks are ignored, so a missing month does not become a zero and does not widen the spread. A typed zero does. One lone number is #DIV/0!, because n−1 would be zero. The older name STDEV is the same sample calculation. Pass 24.9020205 as standard_dev, with mean $111.5875, and NORM.DIST of January’s $143.60 is 0.9006979.