Excel STDEV.P: standard deviation — how “spread out” your data is
STDEV.P returns the standard deviation of a whole population. Compare stability, use the coefficient of variation and z-scores, and see how it differs from STDEV.S.
Two branches have the same average daily sales — 1 million sum. But one makes 980–1,020 thousand every day, while the other swings between 700 and 1,300 thousand. The average hides that difference. The standard deviation reveals it.
Standard deviation is how far values typically stray from the average. Small means stable and predictable results; large means big swings that make planning hard.
STDEV.P calculates it for the whole population: “P” stands for population, meaning you have all the data (every day of the week, every student in the class, every employee in the branch).
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Day | Chilanzar | Yunusabad | |
| 2 | Monday | 1 000 | 700 | |
| 3 | Tuesday | 1 020 | 1 300 | |
| 4 | Wednesday | 980 | 900 | |
| 5 | Thursday | 1 010 | 1 200 | |
| 6 | Friday | 990 | 900 | |
| 7 | Average | 1 000 | 1 000 | |
| 8 | Std deviation | 14,1 | 219,1 | |
| 9 |
Syntax
=СТАНДОТКЛОН.Г(number1; [number2]; ...)
- number1 — a range of numbers (for example,
B2:B6). - number2, … — more ranges, up to 255 in total.
Text, TRUE/FALSE and empty cells in a range are ignored. The result is in the same units as the data (sum, points, kg).
The old name is STDEVP — same result; it remains in the Compatibility category.
What happens inside — let’s calculate by hand
1
Find the average and subtract it from each value — these are the deviations. Positive and negative deviations always add up to 0, so you can’t simply average them.
2
Square the deviations — the sign disappears and big deviations are “penalised” more.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Sales | Deviation | Squared | |
| 2 | 700 | -300 | 90 000 | |
| 3 | 1 300 | 300 | 90 000 | |
| 4 | 900 | -100 | 10 000 | |
| 5 | 1 200 | 200 | 40 000 | |
| 6 | 900 | -100 | 10 000 | |
| 7 | By hand: | 219,09 | ||
| 8 | STDEV.P: | 219,09 | ||
| 9 |
3
Average the squares (divide by n) — that is the variance (VAR.P). Its square root is the standard deviation. In practice one =СТАНДОТКЛОН.Г(A2:A6) does all of this.
Entering STDEV.P
1
Select the result cell (B8). Формулы → Вставить функцию → category Statistical → STDEV.P → OK.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Day | Chilanzar | ||
| 2 | Monday | 1000 | ||
| 3 | Tuesday | 1020 | ||
| 4 | ||||
| 5 |
2
Select B2:B6 for Number1 and click OK. Fill the formula right (to C8) to get the second branch as well.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Measure | Chilanzar | Yunusabad | |
| 2 | Average | 1 000 | 1 000 | |
| 3 | Std deviation | 14,14 | 219,09 | |
| 4 | Coeff. of variation | 1,4% | 21,9% | |
| 5 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Student | Score | z-score | |
| 2 | Aziz | 72 | -0,81 | |
| 3 | Dilnoza | 85 | 0,32 | |
| 4 | Javohir | 90 | 0,75 | |
| 5 | Malika | 64 | -1,50 | |
| 6 | Sardor | 78 | -0,29 | |
| 7 | Nodira | 99 | 1,53 | |
| 8 |
Pro level: reading the deviation and working with filters
- The 68–95 rule: for normally distributed data, about 68% of values lie within average ± 1 deviation and 95% within ± 2. A value beyond ± 2 deviations is an “odd” case worth checking.
- Conditional:
=СТАНДОТКЛОН.Г(ЕСЛИ(A2:A100="Tashkent";C2:C100))— one branch only (Enter in 365, Ctrl+Shift+Enter in older versions). - Visible rows only:
=ПРОМЕЖУТОЧНЫЕ.ИТОГИ(8;B2:B100)or=AGGREGATE(8;5;B2:B100)skip filtered-out rows (8 = STDEV.P). - Standardising:
=STANDARDIZE(B2;СРЗНАЧ(B:B);СТАНДОТКЛОН.Г(B:B))gives the z-score with a built-in function.
Try it in the simulator
Type =СТАНДОТКЛОН.Г(B2:B6) in B8 and fill it right to C8. Then change 1300 in C3 to 1050 and watch Yunusabad’s deviation shrink.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Day | Chilanzar | Yunusabad | |||||||||||||||||||||
| 2 | Monday | 1000 | 700 | |||||||||||||||||||||
| 3 | Tuesday | 1020 | 1300 | |||||||||||||||||||||
| 4 | Wednesday | 980 | 900 | |||||||||||||||||||||
| 5 | Thursday | 1010 | 1200 | |||||||||||||||||||||
| 6 | Friday | 990 | 900 | |||||||||||||||||||||
| 7 | Average | 1000 | 1000 | |||||||||||||||||||||
| 8 | Std deviation | |||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 | ||||||||||||||||||||||||
| 12 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.