Excel #REF! error

The formula points to a cell that no longer exists, usually because you deleted a row, column or sheet it used.

Why it appears

How to fix it

  1. Undo with Ctrl+Z right after deleting and fix the formula first.
  2. Use anchored references ($A$1) or whole ranges so they do not shift.
  3. Check that VLOOKUP’s column number fits in the range.

Gives the error

=VLOOKUP(E2,A2:B6,3,FALSE)

Fixed

=VLOOKUP(E2,A2:C6,3,FALSE)

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice it

Solve the exercise on the sheet; it is checked instantly. See all lessons · Formula translator

Absolute references ($)

When you copy a formula down, B2 becomes B3, B4… If a cell must stay put, like a tax rate, anchor it with $: $F$1 does not change when copied. In Excel, F4 adds the dollar signs.

Example=B2*(1+$F$1)

In C2, calculate the price with tax using the rate in F1. The formula will be copied down to C6.

C2
ABCDEFG
1ProductPricePrice with taxTax16%
2Headphones650
3Keyboard899
4Mouse349
5Monitor3,299
6USB cable129
7

Tip: while typing, click a cell or drag across several to insert their reference. F4 anchors the reference with $.

Frequently asked questions

What does #REF! mean in Excel?
The formula points to a cell that no longer exists, usually because you deleted a row, column or sheet it used.
How do I get rid of the #REF! error?
Undo with Ctrl+Z right after deleting and fix the formula first. Use anchored references ($A$1) or whole ranges so they do not shift. Check that VLOOKUP’s column number fits in the range.
What is #REF! called in Spanish Excel?
Spanish Excel shows it as #¡REF!.