Topic 12
Excel Errors
Errors in Excel are not failures; they are helpful diagnostics. Excel displays a specific error code to tell you exactly what is wrong with your calculation or data. Understanding what these codes mean allows you to fix them in seconds.
The Error Catalog
Here are the 10 most common errors you will encounter in Excel formulas, what causes them, and how to resolve them.
Occurs in dynamic array formulas (like FILTER, SORT, or UNIQUE) when the grid area where the formula needs to display its results (the "spill range") contains other data, or when the formula is placed inside an Excel Table.
Example — spill range blocked by text in A3:
Excel returns this error when a formula expects one type of data (e.g. a number) but receives a different type (e.g. text). It is a mismatch of values.
Example — adding text and number:
Excel displays this error when a formula attempts to divide a number by zero (0) or by an empty cell.
Example — division by blank cell:
This error means Excel does not recognize something in your formula. It is usually a spelling mistake in a function name or range name, or missing quotation marks around text.
Example — misspelled name and missing quotes:
= IF(A1 = Active, 1, 0) ← Returns #NAME? (missing quotes around "Active")
Occurs when a formula contains numeric values that are invalid, or when a mathematical calculation results in an impossible number.
Example — square root of a negative value:
Short for "Not Available". This is the standard lookup error. It means the lookup formula could not locate the search value in the source table.
Example — lookup value missing:
Occurs when you use a space (the intersection operator) between two cell ranges that do not actually intersect.
Example — space instead of comma:
One of the most common and dangerous errors. It means a cell, column, row, or worksheet referenced by your formula has been deleted, leaving Excel with nothing to point to.
Example — referenced cell deleted:
A modern error code specific to Excel 365. It occurs when Excel's calculation engine encounters a problem that it cannot resolve, particularly when an array calculation returns an empty set.
Example — FILTER with no matching results:
= FILTER(A1:B10, A1:A10 = "Unavailable", "No results") ← Returns "No results" safely
A Circular Reference occurs when a formula directly or indirectly refers to its own cell. This creates an infinite loop where the calculation needs its own result to compute itself.
Example — writing formula inside its own sum range:
Quick Diagnostic Summary
Use this table as a quick reference guide to identify and fix Excel errors on the fly.
| Error | Diagnostic Meaning | Common Scenario | Quick Fix |
|---|---|---|---|
| #SPILL! | Array blocked by data | Dynamic range overlaps existing cell entries | Delete the cells blocking the spill range |
| #VALUE! | Incorrect data type | ="Hello" + 10 |
Verify numbers aren't stored as text |
| #DIV/0! | Divided by 0 or blank | =A1 / B1 where B1 is empty or 0 |
Use IFERROR to output 0 or blank |
| #NAME? | Unrecognized text | Misspelling formula or omitting double quotes | Check function spelling and add quotes to text |
| #NUM! | Invalid numeric value | Calculating square root of a negative value | Correct numeric inputs to valid ranges |
| #N/A | Value not found | Lookup value doesn't exist in source table | Fix spelling of search key or use IFERROR |
| #NULL! | Invalid range syntax | Missing comma or colon between range names | Replace space operators with commas or colons |
| #REF! | Reference deleted | Source rows or columns deleted | Undo deletion or adjust formulas manually |
| #CALC! | Array calculation failure | FILTER finds no matching data rows |
Add the optional fallback argument to FILTER |
| Circular | Formula loops back | SUM range contains the formula cell itself | Move formula to a cell outside the range |
Interactive Scenario Review
Test your knowledge! Read each scenario and type in the exact Excel error code that would result (e.g. #REF!, #N/A, #VALUE!, or Circular). The hash mark (#) is optional in your answer.
| Formula Scenario Description | Resulting Error |
|---|---|
You delete column C which was directly referenced by a formula: =B1+C1. |
|
You perform lookup: =VLOOKUP("Toyota", cars, 2, FALSE), but "Toyota" is not in the list. |
|
You write formula: =SUM(A1:A5 B1:B5) but forgot a comma between the arguments. |
|
You attempt math on a text string: ="Overdue" + 150. |
|
You enter =SUM(A1:A10) inside cell A5. |
|
You divide sales by units: =C2/D2, where D2 is blank. |
|
You misspelt standard function: =AVERGE(A1:A15). |
|
A FILTER formula returns empty array because no data matches the criteria. |
|
A UNIQUE formula has 5 output rows, but there is already text in the cells below it. |
|
You try to find square root of negative number: =SQRT(-100). |