Sheetmend

How to fix #REF!, #N/A, #VALUE!, #DIV/0! and #NAME? errors in Excel and Google Sheets

A spreadsheet error isn't random. Each one tells you what went wrong. This guide covers the five you'll see most, what causes each one, and how to fix it so it stays fixed. Everything here works in both Excel and Google Sheets unless it says otherwise.

Before you start: find where the error begins

One broken cell can spread an error down a whole column and into every total that uses it. Fixing the last cell in the chain does nothing.

#REF! — the formula points at a cell that's gone

What causes it: a row, column or sheet the formula used was deleted, or a formula was copied somewhere its references don't make sense (for example, a reference that ends up above row 1).

How to fix it:

#N/A — a lookup can't find what it's looking for

What causes it: VLOOKUP, XLOOKUP, MATCH or INDEX/MATCH is searching for a value that isn't in the lookup range. Usually it is there, but it doesn't match exactly.

Common reasons, in order of how often we see them:

When "not found" is a normal answer, show something cleaner: =IFNA(VLOOKUP(A2,Prices!A:C,3,FALSE),"Not listed"). Use IFNA rather than IFERROR here so real mistakes elsewhere in the formula still show up.

#VALUE! — the formula got the wrong kind of data

What causes it: math on something that isn't a number: text, a space that looks blank, or a date typed in a format the sheet doesn't recognize.

How to fix it:

#DIV/0! — dividing by zero or by a blank cell

What causes it: the bottom number of a division is 0 or empty. It's common in averages, percentages and "cost per unit" columns before data is filled in.

How to fix it: decide what the cell should show when there's nothing to divide by, and say so in the formula:

#NAME? — the sheet doesn't recognize a word in the formula

What causes it: a misspelled function (=SUMIF is right, =SUMIFF is not), text that isn't in quotes, a named range that was deleted, or a newer function your version doesn't have.

How to fix it:

Make the fix stick

When it's faster to hand it off

If the file was built by someone who's gone, the formulas run across a dozen tabs, or you've spent an evening on one error, it may be quicker to have someone else trace it. Send the file, say what it should do, and get it back fixed with a list of every change made.

Have us fix it, from $29