How to Calculate Outliers in Excel

There are two ways to “calculate outliers in excel”: the quick way you copy and the durable way you understand. This page gives you both. The exact Excel answer is above; below, we build the small mental model that makes the fix stick, so the next variation of the same problem solves itself.

Exact answer

In Excel: compute the lower and upper 1.5×IQR fences in two cells, then flag every value that falls outside them with a simple IF.

On this page7
▤Annotated stepsExcel
1

In two helper cells compute Q1 and Q3 with QUARTILE.INC, and the width between them.

2

Put the lower fence in E2 as Q1 minus 1.5 times that width, and the upper fence in E3 as Q3 plus 1.5 times it.

3

Fill the flag formula down beside the data, locking the fence references with $.

4

Highlight them visually with Home ▸ Conditional Formatting ▸ New Rule ▸ Use a formula, referring to the same fences.

5

For the alternative rule, flag where =ABS((A2-AVERAGE($A$2:$A$101))/STDEV.S($A$2:$A$101))>3.

=IF(OR(A2<$E$2,A2>$E$3),"outlier","")
Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

What this does

Excel has no outlier function, so flagging is a rule you choose and apply. The fence method marks anything more than 1.5 quartile-widths beyond the first or third quartile, and holds up on skewed data. The z-score method marks anything more than three standard deviations from the mean, and is easier to explain but weakens precisely when extreme values are present, because those values inflate the very standard deviation being used to judge them. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. Treat “calculate outliers in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected cells shows up while it is still harmless. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. That turns a calculation you can defend to a CFO or an auditor into a method you can reuse, explain, and defend when the workbook leaves your screen.

A worked example

With quartiles 12 and 27 the fences sit at 12 - 1.5×15 = -10.5 and 27 + 1.5×15 = 49.5. Put those in E2 and E3 and fill =IF(OR(A2<$E$2,A2>$E$3),"outlier","") down the column: the single 62 is flagged and everything else is left blank. One mistyped figure moves an average enough to change a decision, and a stated rule for flagging is what separates cleaning the data from choosing the answer. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

The standard worksheet functions used by this example are listed in Google Sheets. Check the cell references, argument separators and input types in the target spreadsheet, then compare the worked result. This formula-availability check does not establish identical menus, keyboard shortcuts or workbook features, and it is not a product execution test. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. For “calculate outliers in excel”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

Common mistakes

  • Deleting flagged rows without recording which and why, which makes the analysis impossible to reproduce.
  • Applying the three-sigma rule to skewed data, where it flags almost nothing at one end and too much at the other.
  • Treating an outlier as an error: a genuine extreme observation is often the most informative row in the table.
  • Recomputing the fences from data that already had outliers removed, and then removing more.

Frequently asked questions

What counts as an outlier?

It depends on the rule you state. The two common ones are beyond 1.5 quartile-widths past the quartiles, or more than three standard deviations from the mean.

Does Excel flag them automatically?

A Box and Whisker chart does: it draws points beyond the same fences as individual dots.

Should I remove them?

Only with a documented reason such as a known instrument fault. Otherwise report the analysis both with and without them.

How do I highlight them in colour?

Conditional Formatting ▸ New Rule ▸ Use a formula, entering the same comparison against the fence cells.