New Tool Radar

AI for Data & Spreadsheets

How to Flag Outlier Values in Excel With a Mean and Standard Deviation Check

Flag outlier values in Excel with a mean and standard deviation check before trusting an average.

Schematic with three steps: Work out the mean and standard deviation; Flag values more than two standard deviations; Decide for each flagged value whether it.

One value of 10,000 in a column of values near 100 pulls the average up and hides the fact that the rest of the data is small. A mean and standard deviation check flags values that sit far from the rest, so you can look at them before quoting the average. The check does not prove a value is wrong; it proves it deserves a look.

What you need

  • Excel with the numeric column to check
  • The source figures for any flagged values
  • A note of how far from the mean counts as an outlier for this data

Step 1: Work out the mean and standard deviation

In spare cells, enter =AVERAGE for the column and =STDEV.P for the same range. Write both numbers down; they describe the centre and the spread of the data.

Step 2: Flag values more than two standard deviations away

In a helper column, enter a formula that flags a value when its distance from the mean is more than twice the standard deviation, and fill it down. Read each flagged value against the source.

Step 3: Decide for each flagged value whether it is real

Check each flagged value against the source document. A real large order stays, with a note; a value that is a typo or a wrong unit is corrected from the source, and the average is re-worked.

Worked example: synthetic ten-value order list

The table below is a synthetic example. It shows the expected result of an outlier check; no workbook was opened.

Check Value Result
Values in the column 10 Source
Mean of the values 190 Average
Standard deviation 280 Spread
Values flagged beyond two deviations 1 Value of 1,000
Source check on the flagged value Real A genuine large order

Expected result (UNTESTED). 1 of 10 values is flagged, the order of 1,000, which sits more than two standard deviations from the mean of 190. The source confirms it is a genuine large order, so it stays and the average is quoted with a note. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • A standard deviation check assumes the data is roughly spread around the mean; it misleads on skewed data such as income.
  • With very few values, one large value inflates the standard deviation and hides itself.
  • Two standard deviations is a rule of thumb, not a law; agree the threshold for the data in hand.
  • Flagging is not deleting; never remove a flagged value without checking the source.

Sources

See all