Excel tutorial
/

Functions

Advanced

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).

Книга1 - Excel
—☐✕
C8fx=СТАНДОТКЛОН.Г(C2:C6)
ABCD
1DayChilanzarYunusabad
2Monday1 000700
3Tuesday1 0201 300
4Wednesday980900
5Thursday1 0101 200
6Friday990900
7Average1 0001 000
8Std deviation14,1219,1
9
Готово
Same average — 1,000 thousand. But the deviation is 14 in Chilanzar and 219 in Yunusabad: the second branch’s sales swing 15 times more

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.

Книга1 - Excel
—☐✕
B7fx=КОРЕНЬ(СУММ(C2:C6)/СЧЁТ(A2:A6))
ABCD
1SalesDeviationSquared
2700-30090 000
31 30030090 000
4900-10010 000
51 20020040 000
6900-10010 000
7By hand:219,09
8STDEV.P:219,09
9
Готово
Divide the sum of squares by n (here 5) and take the square root — exactly the same as STDEV.P: 219.09

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.

Книга1 - Excel
—☐✕
B2fx1000
ABCD
1DayChilanzar
2Monday1000
3Tuesday1020
4
5
Готово

2

Select B2:B6 for Number1 and click OK. Fill the formula right (to C8) to get the second branch as well.

Книга1 - Excel
—☐✕
C4fx=C3/C2
ABCD
1MeasureChilanzarYunusabad
2Average1 0001 000
3Std deviation14,14219,09
4Coeff. of variation1,4%21,9%
5
Готово
Example 1: coefficient of variation = deviation / average. 1.4% is very stable, 21.9% is a strong swing. Being a percentage, it also compares data on different scales
Книга1 - Excel
—☐✕
C5fx=(B5-СРЗНАЧ($B$2:$B$7))/СТАНДОТКЛОН.Г($B$2:$B$7)
ABCD
1StudentScorez-score
2Aziz72-0,81
3Dilnoza850,32
4Javohir900,75
5Malika64-1,50
6Sardor78-0,29
7Nodira991,53
8
Готово
Example 2: the whole class is the population, so STDEV.P. The z-score shows how many “deviations” a student is from the average: Malika −1.50, Nodira +1.53

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.

Книга1 - Excel
—☐✕
Буфер обмена
Шрифт
Выравнивание
Число
Стили
Ячейки
Редактирование
✕✓fx
ABCDEFGHIJKLMNOPQRSTUVWX
1DayChilanzarYunusabad
2Monday1000700
3Tuesday10201300
4Wednesday980900
5Thursday10101200
6Friday990900
7Average10001000
8Std deviation
9
10
11
12
Лист1
Готово

Has ExcelLab been useful?

Support the project and help us release new lessons and exercises.

Support us
Previous

127 / 154