The STDEV function in Google Sheets is a statistical tool used to calculate the standard deviation based on a sample. It measures the amount of variation or dispersion in a set of values. Learn how to use this function effectively with our comprehensive guide.
Parameters
value1: The first value or range for which you want to calculate the standard deviation.value2, ...: [Optional] Additional values or ranges for which you want to calculate the standard deviation.
Step-by-Step Tutorial
-
Using
STDEVwith individual values:- Example:
=STDEV(2, 4, 6, 8, 10) - Result:
3.1622776601683795
- Example:
-
Using
STDEVwith a range of cells:- Example: If cells
A1toA5contain the values5, 7, 9, 11, 13, then=STDEV(A1:A5)will return3.1622776601683795.
- Example: If cells
Working with a Single Value, a List, and a Range
STDEV accepts numbers one at a time, as a comma-separated list, or as a range — mix and match freely, as long as at least two numeric values are supplied.
- Single value:
=STDEV(A1)— not meaningful on its own;STDEVneeds at least two data points and returns a#DIV/0!error with just one. - List of values:
=STDEV(A1, A2, A3)— treats each cell as one data point in the sample. - Range:
=STDEV(A1:A10)— treats every cell in the range as part of the sample. - Mixed:
=STDEV(A1, A3:A6, 10)— combine single cells, ranges, and literal numbers into one sample.
Use Cases and Scenarios
- Quality Control: Calculate the standard deviation of measurements to analyze the consistency of product quality.
- Investment Analysis: Determine the volatility of returns by calculating the standard deviation of a portfolio.
- Survey Analysis: Measure the level of agreement or disagreement among survey responses.