A practical guide to finding and fixing formula errors across a Google Sheets workbook.

How to Find and Fix Broken Formulas in Google Sheets

Formula errors in Google Sheets always seem to appear at the worst moment — right before you share a report or hand off a model. The good news: each error code tells you exactly what went wrong, and once you know how to find every broken formula across a workbook (not just the one staring back at you), fixing them is fast and methodical.

What each Google Sheets error actually means

Before you can fix anything, read the error. Google Sheets uses a small set of codes, and each one points to a specific kind of problem.

How to find broken formulas across a whole workbook

The hardest part is not fixing errors — it is finding all of them. Errors hide in unscrolled regions, in columns off the right edge of the screen, and in tabs you rarely open. A clean-looking summary tab can sit on top of three broken supporting tabs. Here is how to surface them systematically.

Search with Find and replace

Open Find and replace with Ctrl+H (or Cmd+Shift+H on a Mac), and search for the literal text #REF!, then repeat for #N/A, #VALUE!, and the others. One important setting: a plain find matches the displayed error, but if you want to catch references that are broken inside the formula text, enable Search within formulas. Also switch the search scope from "This sheet" to All sheets so you are not auditing one tab at a time.

Surface errors with a helper column

For a more reliable sweep, add a helper column next to your data and wrap a test around each row. ISERROR returns TRUE wherever a formula is broken — for example ISERROR(B2) — so you can then filter or sort that column to pull every error to the top. IFERROR works similarly when you want to label them: IFERROR(B2, "CHECK") flags the bad cells while leaving good ones untouched.

Filter and check every tab

Apply a filter to the helper column and filter for error values or your "CHECK" label to isolate problem rows instantly. Then do the unglamorous but essential step: walk through every tab, not just the ones you usually look at. Errors propagate — a #REF! on a hidden data tab quietly turns into a #N/A or #VALUE! three sheets downstream.

How to fix each type of error

Once you have located an error, the fix follows directly from the cause.

How to prevent broken formulas

Most errors are avoidable with a few habits.

  1. Use named ranges instead of raw cell references where you can. Named ranges survive layout changes better and make formulas readable.
  2. Do not delete rows or columns blindly. Before removing anything, check what depends on it — deleting a column is the number-one source of #REF! errors.
  3. Add data validation to input cells so people cannot type text where a number belongs, heading off #VALUE! and #DIV/0! before they start.
  4. Wrap formulas in IFERROR where it makes sense — especially lookups and divisions — but only as a deliberate fallback, not to hide problems you have not diagnosed.

Auditing an entire workbook automatically

Doing all of this by hand is workable on a small sheet, but it gets slow and error-prone across a workbook with a dozen tabs and thousands of formulas — that is exactly where a stray #REF! goes unnoticed. If you would rather not click through every tab, you can audit the whole file at once with Sheet Audit Pack, a free Google Sheets add-on that scans the entire workbook, flags broken references and formula errors (among other checks), and lists every issue with its sheet and cell in an Audit Issues Log along with a risk score. It is the same process described above, done in one pass instead of tab by tab.

Frequently asked questions

How do I find all #REF! errors in Google Sheets at once?

Open Find and replace with Ctrl+H, type #REF!, enable Search within formulas, and set the scope to All sheets. For a more thorough sweep, add a helper column using ISERROR and filter it, or audit the whole workbook automatically so nothing hidden in an unscrolled area or another tab slips through.

Is it safe to wrap every formula in IFERROR?

No — IFERROR hides the error message, so if you apply it everywhere you can mask real problems like a broken lookup or a bad reference. Use it deliberately for expected cases (such as guarding a division or showing a clean fallback for an empty lookup), and only after you have confirmed the formula is otherwise correct.

What is the difference between #N/A and #REF!?

#N/A means a lookup ran correctly but found no match — the formula is intact, the data just is not there. #REF! means the formula itself points to something that no longer exists, usually because a row, column, or sheet was deleted. #N/A is a data issue; #REF! is a structural one.

Back to all guides

Ready to audit your next workbook?

Use Sheet Audit Pack to review workbook structure, formula risks, and handoff readiness — directly inside Google Sheets. Free, with no subscription.