formulastreak

Statistics function

STDEV.S function in Google Sheets and Excel

STDEV.S estimates the standard deviation of a sample: how far the values typically sit from their average.

Checked against Microsoft's and Google's documentation on · Example calculated on a live sheet

Syntax

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

Arguments in [brackets] are optional. Google Sheets writes it STDEV.S(value1, [value2, ...]).

Example

=STDEV.S(C2:C13) reads: Treat the twelve students' study hours in C2:C13 as a sample and return how far they typically sit from their average.

Exam results · edit J1 and watch it recalculate
Click a cell (or use the arrow keys) to insert its address · Enter shows the resultJ1 = 2.8
ABCDEFGHIJ
1StudentClassHoursScoreFromGradeHours spread2.8
2NoorA2480F
3MateoB56650D
4HanaA88160C
5OllieB35570B
6ZaraA109385A
7IvanB672
8LeaA139
9OmarB777
10SaraA988
11TheoB461
12YukiA670
13BeaB884

J1 shows 2.8: study hours typically sit about 2.8 hours from their average of 5.75.

How the spreadsheet calculates it

Works out the standard deviation of C2:C13, treating it as a sample.

  1. 1. STDEV.S: Works out the standard deviation of C2:C13, treating it as a sample.
    • range = `C2:C13`: the numbers

More STDEV.S examples

  • =STDEV.S(D2:D13)The spread of the exam scores.
  • =STDEV.S(C2:C13)/AVERAGE(C2:C13)The spread as a share of the average, to compare groups of different sizes.
  • =(C2-AVERAGE($C$2:$C$13))/STDEV.S($C$2:$C$13)How many standard deviations C2 is from the average (fill down).
  • =STDEV.S(FILTER(D2:D13,B2:B13="B"))The spread of class B's scores only.

Paste any of these into the formula explainer to see it step by step.

Tips

  • Always show the average next to the standard deviation.
  • Use STDEV.S unless you're sure you have the whole population.
  • Format the result to one or two decimals; more digits suggest a precision the data doesn't have.

What STDEV.S is used for

Measuring how consistent delivery times, sales or test scores are, comparing the spread of two teams or products, and spotting unusual values that sit far from the average.

Arguments

ArgumentRequiredWhat it is
number1YesA range of numbers that is a sample of a bigger group, such as C2:C13.
number2, …NoMore ranges or numbers in the sample.

Common mistakes

  • Using STDEV.P on a sample: it understates the spread.

  • Reading the result without the average beside it: a spread of 2.8 hours is large around an average of 5.75 but would be tiny around 500.

  • Typing TRUE/FALSE or text into the range and expecting them to count: Microsoft's page says text and logical values in a reference are ignored.

  • Using it on a column that also holds the total row, which inflates the spread.

In Google Sheets

Google Sheets has STDEV.S with the same arguments (STDEV.S(value1, [value2, ...])), and also the older name STDEV.

Errors you may see with STDEV.S

  • #DIV/0!: There's only one number (or none), so a sample spread can't be calculated.
  • #VALUE!: A value typed into the formula can't be read as a number.

Questions

STDEV.S or STDEV.P: which should I use?

STDEV.S when your data is a sample of a bigger group (most real data: some customers, some days). STDEV.P only when you have every member of the group. STDEV.S divides by n−1, so it's slightly larger.

What's the difference between STDEV and STDEV.S?

STDEV is the older name for the same sample calculation, kept for compatibility. Use STDEV.S in new work.

How do I read a standard deviation?

In the same units as the data: a standard deviation of 2.8 hours means study hours typically sit about 2.8 hours from the average. Compare it with the average to judge whether that's a lot.

How do I find values far from the average?

Subtract the average and divide by STDEV.S: (C2-AVERAGE($C$2:$C$13))/STDEV.S($C$2:$C$13) gives how many standard deviations each value is from the average.

Sources

Official documentation the facts on this page were checked against.

Practise STDEV.S on a live sheet

Lesson 43, Typical values and spread (Unit 13, Statistics), has 6 graded exercises, checked instantly, with steps and hints when you're stuck. Pro