Home ›
Excel guides › The #REF! error in Excel: what breaks a reference and how to fix it
The #REF! error in Excel: what breaks a reference and how to fix it
Why Excel returns #REF!, what it is called in other languages, and how to repair a broken reference.
The #REF! error means a formula points to a cell reference that no longer exists. It's one of the more destructive errors because, once it appears, the original reference is usually lost. Here is what causes it and how to recover.
#REF! in other languages
| Language | Code |
| English | #REF! |
| German | #BEZUG! |
| French | #REF! |
| Spanish | #¡REF! |
| Russian | #ССЫЛ! |
What causes #REF!
- Deleted cells, rows or columns. If a formula referenced column C and you delete column C, the reference has nowhere to point — it becomes
#REF!.
- Deleted worksheets. A formula like
=Sheet2!A1 breaks if Sheet2 is removed.
- Bad cut-and-paste. Pasting over cells that other formulas depend on.
- VLOOKUP with a column index beyond the table.
=VLOOKUP(A1,B:C,5,FALSE) asks for the 5th column of a 2-column range — that returns #REF!.
- Broken links to another workbook that moved or was deleted.
How to fix and recover
- Undo immediately. If
#REF! just appeared after a deletion, press Ctrl+Z — this restores the original reference. This is the only reliable recovery, so act before saving.
- Find every #REF!. Use Find & Replace (Ctrl+H), search for
#REF!, to locate all affected formulas.
- Repoint the reference. Edit each formula to point at the correct, existing cell or range.
- Check VLOOKUP indexes. Make sure the column number fits inside the table range.
Prevent it
- Use INDEX/MATCH or XLOOKUP, which are more resilient to inserted/deleted columns than VLOOKUP's fixed index.
- Use named ranges so references survive structural edits.
See the full Excel error reference for every code and its languages.
← All Excel guides