STDEV.P measures spread when your data is everything: every machine in a plant, every branch in a region, every student in a class. It divides the sum of squared deviations by n, the number of values, and takes the square root.
Population versus sample
The choice between STDEV.P and STDEV.S depends on what your numbers represent.
- Population: you have every member of the group, and you only want to describe that group. Use STDEV.P.
- Sample: you have some of a larger group and want to estimate the spread of the whole. Use STDEV.S, which divides by
n − 1 to correct for the fact that a sample tends to understate the spread.
For eight lead times of 12, 14, 14, 14, 15, 15, 17 and 19 days, the average is 15. The squared deviations add up to 32. STDEV.P divides by 8 and returns exactly 2. STDEV.S divides by 7 and returns about 2.14. The more values you have, the smaller the difference. With a handful of values it matters.
If you are unsure which applies, ask whether you would collect more data tomorrow and want to generalise. If yes, treat today's data as a sample.
What it ignores
In a range or cell reference, STDEV.P ignores text, blanks and TRUE/FALSE. Numbers typed straight into the formula are counted. An error value in the data makes the result an error. With a single number the result is 0, because one value has no spread. (STDEV.S returns #DIV/0! for one value.) With no numbers at all, STDEV.P returns #DIV/0!.
Reading the number
The standard deviation is in the same units as the data. For roughly bell-shaped data, about 68% of values fall within one standard deviation of the average. To compare spread across data sets of different scale, divide by the average (the coefficient of variation).
STDEVP and STDEV.P
The older STDEVP gives identical results and is kept only for compatibility. Prefer STDEV.P in new work. The square of the population standard deviation is the population variance, VAR.P. Its sample counterpart is VAR.S.
AVERAGE gives the centre and MEDIAN the middle value. STDEV.P describes how tightly values cluster around them.