Sub topic 1
What Excel error values tell you
Prerequisites
You should know how to enter and copy formulas, use relative and absolute references, and write basic IF and lookup formulas.
Error values and their causes
An Excel error value identifies a problem in a formula. The error often tells you whether the formula has invalid data, a broken reference, or a missing result.
| Error | Common cause |
|---|---|
| `#DIV/0!` | A formula divides by zero or an empty cell. |
| `#N/A` | A lookup cannot find the requested value. |
| `#VALUE!` | A formula receives the wrong kind of value, such as text instead of a number. |
| `#REF!` | A formula refers to a deleted or invalid cell. |
| `#NAME?` | Excel does not recognize a function, name, or text in the formula. |
| `#NUM!` | A numeric calculation is invalid or outside Excel's supported range. |
| `#NULL!` | An invalid intersection or range operator is used. |
Treat these values as diagnostic information. Replacing every error with a blank can hide a broken reference or misspelled function.
Catching errors with IFERROR
IFERROR evaluates a formula and returns a fallback value if that formula produces any Excel error.
=IFERROR(A2/B2, 0)This returns 0 for #DIV/0!, but it also replaces errors such as #REF!, #VALUE!, and #NAME?. Use it when every error means “no usable result” for the current calculation.
Catching only #N/A with IFNA
IFNA handles only #N/A. Other errors remain visible, making it safer when a missing lookup is expected but formula defects must still be noticed.
=IFNA(VLOOKUP(E2, $A$2:$B$100, 2, FALSE), "Not found")Use IFNA for lookup formulas when “not found” is a normal outcome. Use IFERROR when the whole calculation can legitimately fail for several reasons.
Exercise
Which function should you use when a missing lookup should display "Missing", but a #REF! error must remain visible?
Show answer
Use IFNA, because it replaces only #N/A.