Cellgrids Cellgridsby LearnWithRinkesh
Home › Excel tutorials › How to Fix #N/A, #VALUE! and #REF! in Excel

How to Fix #N/A, #VALUE!, and #REF! Errors in Excel

By Rinkesh Shah · Business Analyst, 8 years in data · Updated 2026-10-31

▶ Video coming soon

Every Excel error code points to a specific cause. Once you know the cause, the fix is usually quick.

#N/A: value not found

A lookup could not find its value. Check for extra spaces, numbers stored as text, or a typo. Use =IFNA(VLOOKUP(...), "Not found") to show a clean message.

#VALUE!: wrong type of data

The formula tried to do maths on text, or ranges are different sizes. Look for hidden spaces or text in number columns. =VALUE(A1) can convert text to a number.

#REF!: broken reference

The formula points to a cell that was deleted. Press Ctrl+Z straight away if you just deleted something. Otherwise edit the formula and re-select the range.

#DIV/0!: division by zero

The divisor is zero or blank. Use =IF(B2=0, 0, A2/B2) or =IFERROR(A2/B2, 0).

#NAME?: Excel does not recognise something

A function name is misspelled, text is missing quotes, or a named range does not exist. Check spelling, such as VLOOKPU instead of VLOOKUP.

#NUM! and #NULL!

IFERROR vs IFNA

IFERROR hides every error, which can hide real mistakes. IFNA only hides #N/A, so use it for lookups.

Worked example

#N/A: a lookup found nothing, so check spaces and match type. #VALUE!: wrong data type, for example text in maths. #REF!: a referenced cell was deleted, so use Undo or fix the reference. Use =IFNA(...) only after the cause is understood.

Common mistakes

Frequently asked questions

What does #NAME? mean?

Excel does not recognise a function or name, usually a typo.

What does ##### mean?

The column is too narrow, or a date is negative.

How do I find where an error starts?

Formulas → Error Checking → Trace Precedents.

Practice this online, free

Reading is only half of learning Excel. Cellgrids is a free place for online Excel practice: solve Excel formula exercises in a live spreadsheet, prepare for Excel interview questions, and work through business case studies built for data analytics and business analytics roles.

Practice these formulas: IFERROR, IFNA, VLOOKUP.

Start Excel practice → Case studies