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.
Syntax =STDEV.S(number1, [number2], ...)
=STDEV.S(B2:B5)Arguments
| Name | Required | What to pass |
|---|---|---|
| number1 | Required | The first number or range. These are treated as a sample, not the whole population. |
| number2 | Optional | More 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
| A | B | |
|---|---|---|
| 1 | Month | Bill |
| 2 | Jan | 143.60 |
| 3 | Feb | 96.20 |
| 4 | Mar | 118.45 |
| 5 | Apr | 88.10 |
| 6 | Sample stdev | 24.9020205 |
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.