Skip to content
TECHNOARTH Technology in practice.
Software

Excel errors (#N/A, #VALUE!, #REF!, #NAME?, #DIV/0!): what they mean and how to fix them

Your spreadsheet shows #N/A, #VALUE!, #REF!, #NAME?, #DIV/0!, #SPILL! or #####? Here’s what each Excel error means and how to fix it — without just hiding the problem.

Every Excel error starts with # and points to a different cause. Before touching the formula, identify the code — the fix gets much faster.

Example spreadsheet with the #N/A, #VALUE!, #REF!, #NAME?, #DIV/0! and #SPILL! errors and what each one means
Each error (1) points to a different cause: identify the code before changing the formula.
In this article
  1. Quick reference
  2. How to find where the error comes from
  3. Hiding the error — carefully
  4. FAQ

Quick reference

ErrorWhat it meansHow to fix it
#N/AA lookup value wasn’t foundSee VLOOKUP not working: spaces, text vs. number, FALSE
#VALUE!Wrong type: text where a number or date should beCheck cells with text, spaces or dates typed as text
#REF!The formula points to a cell that was deletedUndo the deletion (Ctrl + Z) or rebuild the reference
#NAME?Excel doesn’t recognize a function or range nameFix the spelling; check quotes around text ("text")
#DIV/0!Division by zero or by an empty cellFill in the divisor or handle the case (below)
#SPILL!An array formula has no room to show its resultClear the cells below/next to the formula
#NUM!An impossible or too-large numeric resultCheck the arguments (square root of a negative, invalid dates)
#NULL!A separator between ranges is missingUse , between arguments or : in ranges
#####Not an error: the column is too narrowDouble-click the border of the column header

How to find where the error comes from

  1. Click the cell with the error and the warning icon (yellow diamond) next to it: Show Calculation Steps shows where the error starts.
  2. Under Formulas › Formula Auditing, Trace Precedents draws arrows to the cells the formula uses.
  3. An error in one cell “spreads” to every formula that depends on it: fix the first one.

Hiding the error — carefully

The IFERROR function replaces the error with another value:

=IFERROR(A2/B2,0)

Use it only when the error is expected (for example, a divisor not filled in yet). Hiding #REF! or #NAME? erases the sign that the spreadsheet has a real problem.

FAQ

The error only appears when I open the spreadsheet on another computer.

It may be a function that doesn’t exist in that computer’s Excel version (#NAME?), or a link to another file that isn’t there (#REF!). Check under Data › Edit Links.

The formula doesn’t error, but it doesn’t calculate either.

See Excel formula not calculating.

#SPILL! appeared after an Excel update.

In Microsoft 365, formulas that return several values “spill” into neighboring cells. Clear those cells or put @ before the formula to return a single value.

Share

About the author

TECHNOARTH Editorial Team

The TECHNOARTH newsroom: technology tutorials, guides, comparisons and news produced with AI assistance and checked against manufacturers’ official sources.