FormulaCraft

How to find outliers in a dataset in Excel and Google Sheets

Topic:RANK & statistical aggregates
Excel & Google Sheets
=IF(OR(B2<QUARTILE($B$2:$B$6,1)-1.5*(QUARTILE($B$2:$B$6,3)-QUARTILE($B$2:$B$6,1)),B2>QUARTILE($B$2:$B$6,3)+1.5*(QUARTILE($B$2:$B$6,3)-QUARTILE($B$2:$B$6,1))),"Outlier","Normal")

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter your data in column B (e.g., B2:B6). Lock the range with $ signs.
  2. 2In column C2, enter the IQR outlier formula using QUARTILE to compute Q1, Q3, and IQR.
  3. 3The formula flags values below Q1-1.5*IQR or above Q3+1.5*IQR as 'Outlier'.
  4. 4Copy the formula down column C for every data row.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

Why use 1.5 times the IQR?

This is Tukey's fence rule, a widely accepted statistical convention for defining mild outliers. Use 3*IQR for extreme outliers.

Can I highlight outliers with conditional formatting?

Yes. Apply conditional formatting to the data column using the same IQR formula as the rule, and choose a highlight color.

More on RANK & statistical aggregates

See all →

Formulas used

Related tasks

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: