Guides

How to Fix #REF! Errors in Excel: Causes, Finding Them All, Fixing in Bulk

Updated 2026-10-18

#REF! is Excel saying the thing this formula refers to is gone. Unlike #DIV/0! or #N/A, it usually doesn't go away when the data changes.

Common causes

The first two are the most common, and they share one important trait: the lost reference is written into the formula (the formula text itself contains #REF!), so apart from Undo there's no way to get the original address back automatically.

Find all of them at once

Go To Special:

  1. Select the whole sheet (Ctrl+A).
  2. F5 → Special → Formulas, tick only Errors, OK.
  3. Every formula showing an error is selected; give them a fill color to mark them.

Find: Ctrl+F, search for #REF!, Options → Look in: Formulas, Find All. This lists the cells whose formula text contains #REF!, i.e. the broken formulas.

Both work on the current sheet only, so with many sheets you repeat them on each.

How to fix

To prevent it: before deleting rows, columns or sheets, use Formulas → Trace Dependents to see whether any formula uses them.

Check and fix in bulk

xlszip's check-up scans the whole workbook:

Then fix them right on the page:

If you just want a clean-looking sheet to send out, Beautify can clean error displays too.

More guides