Excel errors are confusing because they're cryptic by design — they tell you what went wrong in the formula engine, not in plain English. Here's every error code decoded, with the exact formula to fix each one.

#DIV/0! — Division by Zero

Meaning: You're dividing by zero or by an empty cell.

Common causes: =A2/B2 when B2 is empty or 0.

-- Fix with IFERROR -- =IFERROR(A2/B2, 0) -- Fix with IF (more control) -- =IF(B2=0, "N/A", A2/B2)

#N/A — Value Not Available

Meaning: A lookup formula couldn't find what it was looking for.

Common causes: VLOOKUP value not in the table, MATCH finding no match.

-- Fix VLOOKUP #N/A -- =IFERROR(VLOOKUP(A2, B:C, 2, FALSE), "Not found") -- Fix MATCH #N/A -- =IFERROR(MATCH(A2, B:B, 0), "Not in list")

Check for extra spaces using TRIM, or mismatched data types (text "123" vs number 123).

#NAME? — Unrecognized Formula Name

Meaning: Excel doesn't recognize the function name. Usually a typo.

Common causes: =VLOOKP instead of =VLOOKUP, or using a function not available in your Excel version.

-- Wrong -- =AVARAGE(A:A) =VLOOKP(A2, B:C, 2) -- Right -- =AVERAGE(A:A) =VLOOKUP(A2, B:C, 2, FALSE)

#REF! — Invalid Cell Reference

Meaning: The formula is referring to a cell that doesn't exist (deleted row/column) or is out of bounds.

Common causes: Deleting rows or columns that a formula referenced, or a col_index_num in VLOOKUP exceeding the table width.

-- VLOOKUP #REF (asking for column 5 when table is only 3 wide) -- =VLOOKUP(A2, B:D, 5, FALSE) ← #REF! =VLOOKUP(A2, B:D, 3, FALSE) ← Fixed

#VALUE! — Wrong Data Type

Meaning: You're trying to do math on text, or providing the wrong type of argument.

Common causes: =A2+B2 where one cell contains text like "five" instead of the number 5.

-- Fix: Convert text to numbers -- =VALUE(A2) + B2 -- Fix with IFERROR -- =IFERROR(A2+B2, "Check cell types")

#NULL! — Invalid Intersection

Meaning: You used a space between two ranges that don't intersect, where you probably meant to use a comma or colon.

-- Wrong -- =SUM(A1:A5 B1:B5) ← space between ranges -- Right -- =SUM(A1:A5, B1:B5) ← comma to add both ranges =SUM(A1:B5) ← colon for continuous range

#NUM! — Invalid Numeric Value

Meaning: A formula contains an invalid numeric operation — usually a result too large for Excel, or an impossible calculation.

-- Square root of negative number -- =SQRT(-4) ← #NUM! =SQRT(ABS(-4)) ← Fixed (use ABS first) -- IRR with no solution -- =IRR(cash_flows) ← #NUM! if no rate found =IFERROR(IRR(cash_flows), "No solution")

The Universal Error Fix

When you're not sure which specific error you'll get, wrap everything in IFERROR:

=IFERROR(your_formula_here, "what to show instead")
💡 Debug Tip

Press Ctrl + ` (backtick) to toggle formula view — you can see all your formulas at once to spot errors. Or click a cell with an error and press F9 to evaluate parts of the formula step by step.

Prevent Errors Before They Happen

Try FormulaZa — Free AI Excel Tool

Type what you want in plain English → get the exact formula. Free, no signup required.

Generate Formula Free →