Knowledge

How To Calculate Standard Deviation In Excel

blog author

Article written by Parvathi Vijayamohan

Content marketer at SurveySparrow.

clock icon

4 min read

11 October 2024

Calculating standard deviation in Excel is a useful skill that can help you understand how spread out your data is. 

 So, whether you're working on a school project, analyzing sports statistics, or managing business data, you're sure to find this guide helpful. Let's break it down step by step!

What is Standard Deviation?

Standard deviation is a measure of how much individual numbers in a dataset differ from the average (mean) of that dataset. 

A low standard deviation means the numbers are close to the mean. But a high standard deviation indicates that the numbers are spread out over a wider range. This can be applied in various ways. For example: 

  • In financial analysis, it can help you evaluate the risk associated with an investment.
  • In scientific research, it can determine the reliability of an experiment’s results. 

Why Use Excel for Standard Deviation?

Excel makes calculating standard deviation easy with built-in functions. You don’t have to crunch numbers by hand! Plus, you can quickly analyze large sets of data without getting overwhelmed.

Steps to Calculate Standard Deviation in Excel

sd-in-excel-step1 (1).png

1. Enter Your Data

Start by entering your data into a column in Excel. For example, if you have test scores, you might enter them in cells D2 through D11.

2. Choose the Right Function

Depending on whether your data represents a sample or an entire population, you'll use different functions:

  • For a sample (a part of a larger group), use STDEVS.
  • For an entire population, use STDEVP.

sd-in-excel-step2 (1).png

3. Input the Formula

Click on an empty cell where you want the standard deviation result to appear. Type the formula, add a bracket and select your data range so that it automatically appears. Then close the bracket. 

For example:

text = STDEV.S(D2:D11)

For population:

text = STDEV.P(D2:D11)

PS: I took these screenshots from an older version (pre-2007) of Excel, which works slightly differently. To achieve the same result, I clicked on the Fx option and chose the formula for standard deviation. 

4. Press Enter

After typing the formula, hit Enter. Excel will calculate and display the standard deviation for your dataset.

sd-in-excel-step3 (1).png

5. Check Your Results

Make sure to double-check your results by comparing them with what you expect based on your data's spread. If something seems off, revisit your data entry and formula.

An Extra Tip: Using Logical Values

If your dataset includes logical values (like TRUE or FALSE) or text, you can still calculate standard deviation using STDEVA for samples and STDEVPA for populations. 

These functions will treat TRUE as 1 and FALSE as 0 when calculating standard deviation. For example:

text = STDEVA(D2:D11) 

This will include any TRUE or FALSE values in your calculation!

How to Simplify Your Calculations with SurveySparrow 

how-to-integrate-survey-with-excel

SurveySparrow’s integration with Excel simplifies this whole process—whether it’s for quiz scores, survey responses or polls. Here’s how it works:

Automated Data Transfer: With SurveySparrow, you can automatically send survey responses directly to Excel. This means you don’t have to manually enter data. Less errors, less headaches.  

Faster Analysis: Once the survey results are loaded in Excel, you can easily calculate the standard deviation using the built-in functions. Survey data analysis becomes quick and painless.

No Coding Required: The integration is user-friendly and doesn’t require any coding skills. You can set it up quickly from the Integrations section. 

By utilizing SurveySparrow’s Excel integration, you can export and analyze survey data without much manual effort. This helps make your calculations simpler and more accurate. 

Sign up below to try it for free.

A personalized walkthrough by our experts. No strings attached!

Read: How to calculate NPS in Excel

Wrapping Up

Calculating standard deviation in Excel is straightforward once you know which functions to use and how to enter your data. 

With these steps, you can analyze any set of numbers effectively. Remember to choose the right function based on your dataset type and consider using STDEVA or STDEVPA if you have logical values included. Happy analyzing!

Start 14 Days free trial

blog floating banner
blog author image

Parvathi Vijayamohan

Content marketer at SurveySparrow.

Parvathi is a sociologist turned marketer. After 6 years as a copywriter, she pivoted to B2B, diving into growth marketing for SaaS. Now she uses content and conversion optimization to fuel growth - focusing on CX, reputation management and feedback methodology for businesses.

Frequently Asked Questions (FAQs)

Variance and standard deviation are both measures of how spread out a set of numbers is. But they differ in how they are calculated and interpreted.

Variance is the average of the squared differences from the mean, while standard deviation is the square root of the variance.

Here are some of the most common errors:

Wrong Function: Confusing STDEV.S (for samples) with STDEV.P (for populations).

Non-Numeric Values: Including text or logical values in your dataset. Use STDEVA or STDEVPA in such cases.

Data Errors: Values (like #DIV/0!) in your range will lead to errors. So clean your data before starting any calculations.

Empty Cells: Having empty cells in your data range can affect results, especially in small datasets. Make sure your range includes only relevant data.


To visualize standard deviation in a chart or graph in Excel, you can use error bars. Here's how to do it:

Calculate Mean and Standard Deviation

Enter your data into a column in Excel.

Calculate the mean using the AVERAGE function.

Calculate the standard deviation using STDEV.S for a sample or STDEV.P for a population.

Create a Scatter Plot

Select your data range.

Go to the Insert tab and click on Scatter under Charts.

Choose the "Scatter with Smooth Lines and Markers" option.

Add Error Bars

Click on the chart to select it.

Click on the Chart Elements button (the plus sign).

Check the box next to Error Bars.

Click on the arrow next to Error Bars and select More Options.

In the Format Error Bars pane, choose the following options:

- Error Amount: Custom and specify the cell range for the standard deviation values.

- Direction: Both

- End Style: Standard

Click Close.

Your scatter plot will now display error bars representing the standard deviation of your data


Demo CTA Banner