Excel Practice Test

โ–ถ

Standard deviation tells you how spread out your numbers are from the average. In Excel, you don't need to remember the math formula or punch numbers into a calculator. The software handles every calculation in seconds โ€” once you know which function to call.

This guide shows you exactly how to do standard deviation in Excel using built-in functions like STDEV.S, STDEV.P, and the older STDEV. You'll learn when to pick a sample formula versus a population formula, how to handle empty cells, and what the result actually means once Excel spits out a number.

Why does this matter? Standard deviation shows up everywhere โ€” quality control reports, financial risk models, A/B test results, lab data, even sports analytics. A low value means your data points cluster tightly around the mean. A high value means they're scattered. Understanding the spread is often more useful than knowing the average alone.

If you're studying for the Excel certification or just trying to build a sharper spreadsheet at work, standard deviation is one of those skills that pays off fast. The function takes one line. The interpretation takes a bit of practice. We'll cover both.

Before you dive in: make sure your data sits in a single column or row with no stray text mixed in. Excel ignores text and logical values by default in STDEV.S and STDEV.P, but messy ranges still trip people up. Clean data first, calculate second.

Take the Free Excel Practice Quiz

Pick the Right Standard Deviation Function

Excel ships with several flavors of the standard deviation function โ€” and choosing the wrong one is the most common mistake people make. Here's the short version:

Most real-world spreadsheets use STDEV.S. You almost never have data on every single customer, every employee, or every product unit ever made. You're working with a slice. Stick with STDEV.S unless you know for a fact that your range covers everyone.

Step-by-Step: Sample Standard Deviation with STDEV.S

Say you have ten test scores in cells A2 through A11: 78, 82, 91, 67, 88, 75, 94, 80, 85, 73. You want the spread of those scores.

Click an empty cell โ€” let's say B2. Type the formula:

=STDEV.S(A2:A11)

Press Enter. Excel returns roughly 8.34. That's your sample standard deviation. The scores typically fall about 8.34 points away from the average score (which sits around 81.3).

You can also build the formula by clicking. Hit the fx button next to the formula bar, search for STDEV.S, then highlight your range. Same result, different path. Some people prefer the wizard the first few times, then graduate to typing the formula directly once muscle memory kicks in.

How to Calculate Population Standard Deviation

If your data covers every member of the group โ€” say, every player on a 12-person basketball roster โ€” switch to STDEV.P. The syntax matches:

=STDEV.P(A2:A13)

The math difference? STDEV.S divides by n-1 (Bessel's correction). STDEV.P divides by n. For small datasets the gap is noticeable; for large ones it shrinks. But the choice still matters for accuracy in academic and statistical work.

Watch Out for These Common Mistakes

A few traps catch beginners every time:

Combine Standard Deviation with Other Statistics

Standard deviation rarely lives alone. Pair it with the mean (AVERAGE) and the count (COUNT) to build a quick summary. A typical layout:

That four-cell summary tells you almost everything you need to know about the dataset's shape. Roughly 68% of values fall inside one standard deviation of the mean (assuming a normal distribution). It's a fast way to spot outliers without building a chart.

Use STDEV with Filtered or Conditional Data

Need the standard deviation of only certain rows? Wrap your range in IF logic or pull the values into a helper column. For criteria-based work, the array formula =STDEV.S(IF(B2:B11="A",A2:A11)) entered with Ctrl+Shift+Enter (or just Enter in modern Microsoft Excel) returns the spread for category A only. Pretty handy when you want to compare groups within a single dataset.

What's the difference between STDEV.S and STDEV.P in Excel?

STDEV.S calculates standard deviation for a sample (a subset of the population) and divides by n-1. STDEV.P calculates standard deviation for an entire population and divides by n. Use STDEV.S when your data is a sample, which is the case in most real-world spreadsheets. Use STDEV.P only when you have data on every member of the group.

Why does Excel return #DIV/0! when I use STDEV.S?

Excel needs at least two numeric values to calculate a standard deviation. If your range has only one number, or if all the cells contain text, blanks, or errors, you'll see #DIV/0!. Check your range, fix any text entries that should be numbers, and make sure you're not pointing at an empty column.

Should I use STDEV or STDEV.S?

STDEV.S is the modern, recommended function. STDEV is the older version. It works the same way and returns the same result, but Microsoft kept it for backward compatibility with spreadsheets created in older Excel versions. New work should use STDEV.S.

Does Excel ignore text when calculating standard deviation?

Yes. STDEV.S and STDEV.P skip text and logical values automatically. If you want text values counted as zero and logical values as 0 or 1, use STDEVA or STDEVPA instead. Most analysts stick with STDEV.S because clean numeric data is the norm.

How do I calculate standard deviation for filtered rows only?

In modern Excel (Microsoft 365 or Excel 2021+), wrap your range in FILTER: =STDEV.S(FILTER(A2:A100, B2:B100="Q1")). For older versions, use an array formula with IF: =STDEV.S(IF(B2:B11="A", A2:A11)) entered with Ctrl+Shift+Enter.

Can I use standard deviation with the AVERAGE function?

Absolutely. Pair them in two cells: =AVERAGE(A2:A100) for the mean and =STDEV.S(A2:A100) for the spread. Together they give you a quick statistical summary. You can then build upper and lower boundary cells to flag values that fall outside one standard deviation of the average.

Practice Beats Theory Every Time

Reading about STDEV.S won't lock it into memory. Open a blank workbook right now, paste twenty random numbers into column A, and run the formula. Then change a few values and watch the result shift. That hands-on tinkering builds the intuition no tutorial can match.

If you handle a lot of data on the job, learn the cousins too โ€” VAR.S for variance, MEDIAN, MODE, and PERCENTILE. They all share the same logic and most use identical syntax. Once STDEV.S clicks, the others fall into place quickly.

What the Numbers Tell You

A standard deviation by itself is meaningless without context. A spread of 5 might be huge for shoe sizes and tiny for housing prices. Always compare your standard deviation to the mean (this is called the coefficient of variation) or to a benchmark from your industry. That's how analysts decide whether a result is normal or weird.

For students prepping for Microsoft Excel certification or the MOS exam, standard deviation questions appear under the "Manage Data" and "Perform Operations with Formulas" objectives. Expect to see scenarios with messy ranges, mixed text, and a choice between STDEV.S and STDEV.P. Practice both.

One Last Tip

If you're working in newer versions of Excel โ€” Microsoft 365 or Excel Online โ€” you can drop dynamic array formulas like =STDEV.S(FILTER(A2:A100,B2:B100="Q1")) directly into a cell. No Ctrl+Shift+Enter needed. Filter functions opened up a whole new way to handle conditional statistics, and they pair beautifully with STDEV.S.

Standard deviation isn't hard. It's one function, two forms, and a quick reality check on the result. Build the habit of running it on every dataset you touch. Within a week, you'll spot outliers and unusual spreads the moment a workbook lands on your screen.

โ–ถ Start Quiz