What does #REF! mean in Google Sheets?

#REF! means a formula references a cell or range that no longer exists. Common causes include deleted rows or columns, removed sheets, broken IMPORTRANGE, or cut-paste that orphaned an address. The error spreads to every dependent formula until you repair the link.

When to use it

Learn #REF! when cleaning imports, refactoring tabs, or maintaining lookup models so you fix broken references before anyone opens the dashboard.

When to skip it

Do not hide every #REF! with IFERROR without finding the missing range. Masking hides structural problems in the workbook.

How it works

  1. 1

    Click the cell and read the formula bar to see which reference is invalid.

  2. 2

    Use Trace precedents to find deleted ranges or broken sheet names.

  3. 3

    Restore deleted rows from version history if the delete was accidental.

  4. 4

    Reconnect IMPORTRANGE with the correct spreadsheet id and range after renames.

  5. 5

    Replace fragile OFFSET patterns that break when rows insert above the anchor.

  6. 6

    Use named ranges and bounded tables so deletes are less likely to shred addresses.

Examples in Google Sheets

Deleted lookup column

VLOOKUP pointed at column 5 but column D was deleted, shifting the index and returning #REF!.

Removed Settings tab

='Settings'!B2 becomes #REF! when the Settings sheet is deleted from the file.

Broken IMPORTRANGE

Source file moved or permissions revoked; the receiving cell shows #REF! until access is restored.

Build this without starting from a blank cell

Use a Better Sheets tool for #REF! error, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • Wrapping every formula in IFERROR without fixing the missing range.
  • Deleting columns on a shared tab without checking dependent formulas.
  • Using whole-column references that break differently than small ranges when rows delete.
  • Copying formulas between files without updating sheet name prefixes.
  • Assuming undo will fix references after someone else already saved the file.

Frequently asked questions

Why does deleting one row cause #REF! everywhere?
Formulas that referenced that row now point at nothing. Update the range or restore the row from version history.
Can INDIRECT cause #REF!?
Yes when INDIRECT builds an invalid address string. Fix the text or the target range.
How do I find all #REF! cells?
Use Edit > Find for #REF! or add a helper column that flags ERROR.TYPE on key formulas.
Do charts show #REF!?
Charts break when the source range is deleted. Re-select the data range in the chart editor.
Why does IMPORTRANGE show #REF!?
Confirm the URL key, tab name, range, and that your account can view the source file.
Can array formulas return #REF!?
Yes when the spill source is deleted or blocked. Clear obstructing cells or fix the reference.
How do I prevent #REF! on team sheets?
Use named ranges, protect structure, and document which columns must not be deleted.
Is #REF! the same as #N/A?
No. #REF! is a broken address. #N/A means the formula ran but could not find a match.

Related Tutorials

Watch how #REF! error works

Browse more tutorials
How do I reference a different spreadsheet in Apps Script?

How do I reference a different spreadsheet in Apps Script?

I'll show you how to get text from one spreadsheet file to another with ...
Most Common Errors and How To Handle Them in Google Sheets

Most Common Errors and How To Handle Them in Google Sheets

Today we're gonna talk about errors in Google Sheets and how you can fix...
Seek Errors When Coding Apps Script

Seek Errors When Coding Apps Script

It's healthy programming. I'll show you some common errors you will enco...
Created a GPT function in Sheets

Created a GPT function in Sheets

Unlock the Power of OpenAI: Create Ultimate GPT Prompts for Seamless Int...
Embed a Number in a Website from a Google Sheet

Embed a Number in a Website from a Google Sheet

Ever wanted to display some data from a google sheet on your site? Witho...
Every Locale Listed in Google Sheets and a Tool to Save Your Sanity

Every Locale Listed in Google Sheets and a Tool to Save Your Sanity

How to change your locale and figure out what changing locales means for...

Related blog posts

Guides that explain #REF! error in more depth.

Browse the blog

Related glossary terms

Google Sheets formula syntax

Every formula starts with = followed by a function name and arguments in parentheses. Ranges use A1 notation, text sits in quotes, and operators like + and & combine values. Sheets recalculates when inputs change, so syntax errors show as #NAME? or #ERROR! in the cell.

Read guide →

Open range reference

An open range reference points at an entire row, column, or unbounded slice such as B:B or 2:2 instead of a fixed rectangle like B2:B500. Formulas with open ranges include every cell in that line, which is convenient for growing tables but expensive and risky when stray values live far below your data.

Read guide →

Absolute reference ($)

Absolute references lock row, column, or both with dollar signs so a formula keeps pointing at the same cell when you copy it. $A$1 locks both axes. A$1 locks the row. $A1 locks the column. Mixed locks are how tax rates stay in one settings cell while a formula fills down a thousand rows.

Read guide →

VLOOKUP

VLOOKUP searches the first column of a range for a key and returns a value from a specified column to the right. It is still everywhere in legacy templates even as XLOOKUP offers more flexible replacements.

Read guide →

IMPORTRANGE

IMPORTRANGE loads values from a range in another Google spreadsheet into your current file. You pass the spreadsheet URL or key plus a range string with an optional sheet name. After you grant access once, the link stays live and updates when the source changes.

Read guide →

Done reading about #REF! error?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.