Table Of Contents
What is Standard Deviation in Excel?
The standard deviation shows the variability of the data values from the mean (average). In Excel, the STDEV and STDEV.S calculate sample standard deviation while STDEVP and STDEV.P calculate population standard deviation. STDEV is available in Excel 2007 and the previous versions. However, STDEV.P and STDEV.S are only available in Excel 2010 and subsequent versions.
Standard Deviation Formulas in Excel
In excel, there are eight formulas to calculate the standard deviation. These are grouped under sample and population.
The functions STDEV.S, STDEVA, STDEV, DSTDEV are under sample and STDEV.P, STDEVP, STDEVPA, DSTDEVP are under population.
The Syntax of STDEV.S Function
The syntax of the function is stated as follows:
The function accepts the following arguments:
- Number 1: This is the first value of the sample data. It can be expressed as a range.
- Number 2: This is the second value of the sample data.
“Number 1” is mandatory and “number 2” is an optional argument.
Note 1: If the entire sample data is entered as a range, the “number 2” argument becomes optional.
Note 2: The sample standard deviation formula works correctly when the supplied arguments contain at least two numeric values. Otherwise, it returns the “#DIV/0!” error.
The Population vs. Sample
The population and sample are defined as follows:
- The population refers to the whole data set.
- A sample is a subset of the data set. A sample of the population is taken when it is difficult to use the complete data set.
Note: The sample standard deviation helps make conclusions for the population.
The STDEV.S and STDEVA Functions
The two functions are explained as follows:
- The STDEV.S function calculates the standard deviation using the numerical values. It ignores the text values. The “S” of the function represents the sample data set.
- The STDEVA function calculates the standard deviation by counting the text values as zero. The logical value “false” is counted as 0 and “true” is counted as 1.
Note: The STDEV.S is available in Excel 2010 and the subsequent versions.
Calculating Standard Deviation in Excel
#1 - Calculate Population Standard Deviation in Excel
Let us consider an example to understand the concept of standard deviation in Excel.
The following are the employee scores of an organization. They indicate the skill levels of the employees.
We want to calculate the standard deviation of the given data set.
The steps to calculate standard deviation in Excel are listed as follows:
- Calculate the mean (average) of the data.
The output 55.2 signifies the average employee score. - Calculate the population variance. It is the difference of each score from the mean. The results are summed as shown in the following image.
Variance =
Variance =
The population variance is 3.36.
- Calculate the standard deviation. It is the square root of the variance.
Conclusion: The standard deviation is 1.83. This indicates that the employee scores range from 53.37 to 57.03.
#2– Calculate Sample Standard Deviation in Excel
Let us consider an example to understand the working of the STDEV.S function.
The following table shows the heights of different goats. The height is measured from the shoulder level and is denoted in millimeters.
Step 1: Calculate the mean of the given data. The output is 394.
Step 2: Apply STDEV.S to the range B2:B6. The output is 165.
Conclusion: The standard deviation of the height of the goats is 165. This indicates that the usual heights are within the range of 229 and 559 millimeters.
In other words, the heights are on either side of the mean, i.e., 394–165=229 and 394+165=559.