Sub topic 9
Reading Common Error Values in Google Sheets
Assume you can enter formulas, use cell references and ranges, compare values with operators such as >=, and write basic IF formulas. This chapter focuses on reading errors before deciding whether to handle them with IFERROR or IFNA.
A Google Sheets error is a value that tells you a formula could not produce its expected result. The error text identifies the kind of problem. Read it first instead of immediately replacing it with a blank or custom message.
How errors move through a formula
An error usually starts in one cell and can spread through formulas that refer to that cell. For example, if C2 contains =A2/B2 and B2 is zero, C2 displays #DIV/0!. A total that includes C2 may then display the same error.
Use the error value to locate the first broken formula. Fixing a later formula may only hide the original problem.
The common error values
| Error | Typical cause | First thing to check |
|---|---|---|
| `#N/A` | A lookup or match found no result | Search key and lookup range |
| `#DIV/0!` | A formula divides by zero or a blank cell | Denominator |
| `#VALUE!` | A formula receives the wrong kind of value | Text, numbers, dates, and arguments |
| `#REF!` | A reference is invalid or was deleted | Cell or range references |
| `#NAME?` | Sheets cannot recognize a function or name | Function spelling and named ranges |
| `#NUM!` | A numeric calculation has an invalid result | Number limits and function inputs |
`#N/A`: no matching result
#N/A means “not available.” Lookup functions commonly return it when the requested key does not exist.
For example, this formula returns #N/A if A2 is not in the first column of Prices!A:B:
=VLOOKUP(A2,Prices!A:B,2,FALSE)Check for spelling differences, extra spaces, and the correct lookup range. Later, you can use IFNA when “not found” is an expected outcome.
`#DIV/0!`: division by zero
This error occurs when the divisor is zero or empty:
=C2/D2Check whether D2 contains a valid nonzero number. A blank cell may behave like zero in division. If a missing denominator is a normal case, handle it deliberately rather than hiding every error.
`#VALUE!`: incompatible values
#VALUE! often appears when a formula expects a number but receives text, or when a function receives an invalid argument. For example, arithmetic involving text that is not numeric can fail:
="Total: "&A2+1Use parentheses and convert values when needed. Also check whether a date is stored as text instead of as a date value.
`#REF!`: broken reference
#REF! means a formula points to a cell or range that no longer exists. This can happen after deleting referenced rows or columns. Restore the deleted range if possible, or edit the formula to use a valid reference. Treat this error as a structural problem, not as an empty result.
`#NAME?`: unrecognized name
Sheets shows #NAME? when it cannot interpret part of a formula. Common causes include misspelled function names, incorrect named ranges, and text that should be inside quotation marks.
=IF(A2=Complete,1,0)Here, Complete is interpreted as a name. Use "Complete" if it is text:
=IF(A2="Complete",1,0)`#NUM!`: invalid numeric result
#NUM! indicates that a function cannot produce a valid number. Examples include an invalid input to a mathematical function or a calculation beyond supported numeric limits. Check the formula's numeric arguments and test them with smaller, valid values.
Debug before suppressing
Use a temporary diagnostic formula to inspect inputs:
=IF(OR(B2="",NOT(ISNUMBER(B2))),"Check score",B2/100)This keeps a data problem visible. After you understand the cause, use IFERROR for broad fallback handling or IFNA when only a missing match is expected.
Exercise
A lookup returns #N/A, but a calculation elsewhere returns #DIV/0!. Which error should you investigate by checking the lookup key, and which should you investigate by checking a denominator?
Show answer
Check the lookup key for #N/A, and check the denominator for #DIV/0!.