Understanding Error Types
Recognize what DIV0, NA, VALUE, and REF errors mean.
Understanding Error Types is a free Excel Formulas Academy lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Why Errors Appear
Spreadsheets show error values when a formula cannot finish its job. Instead of guessing, the cell displays a short code like #DIV/0! or #N/A to tell you exactly what went wrong.
Errors are not bugs in the program. They are honest signals that your formula was asked to do something impossible, such as divide by zero or look up a value that does not exist.
Learning to read these codes is the first step to fixing them. In this lesson you will meet the most common error types and what each one is telling you.
The #DIV/0! Error
The #DIV/0! error means a formula tried to divide a number by zero or by an empty cell. Division by zero has no mathematical answer, so the spreadsheet refuses to invent one.
This often happens in averages or ratios where the denominator has not been filled in yet. For example, calculating cost per unit when the unit count is still blank.
The fix is usually to check whether the divisor is zero before dividing, which you will learn later with IFERROR.
=100/0Seeing #DIV/0! in Action
Imagine cell B2 holds total sales and cell C2 holds the number of orders. To find the average order value you divide one by the other.
If C2 is empty or zero, the result is #DIV/0! because you cannot split sales across zero orders.
The moment C2 gets a real number, the error disappears and the average appears. The error was simply waiting for valid input.
=B2/C2The #N/A Error
The #N/A error stands for not available. It appears when a lookup function such as VLOOKUP or XLOOKUP cannot find the value you asked it to search for.
It is the most common error in real workbooks because lookups depend on a perfect match between what you type and what is stored in the table.
A trailing space, a different spelling, or a missing row all produce #N/A. The error means the search finished but found nothing.
=VLOOKUP("Banana",A2:B10,2,FALSE)Why #N/A Is Useful
Although #N/A looks alarming, it is actually helpful. It tells you the difference between a real zero and a missing match.
If a lookup returned a blank or zero instead, you might think the data existed and was empty. #N/A makes it clear the item was never found at all.
Later you will learn IFNA, a tool designed to handle exactly this error while leaving other problems visible.
The #VALUE! Error
The #VALUE! error means a formula received the wrong type of data. It usually happens when you try to do math on text.
For example, adding a number to a word, or subtracting a date stored as text, can trigger #VALUE!. The spreadsheet expected a number but got something it cannot calculate with.
Hidden spaces or text that looks like a number but is stored as text are common causes of this error.
=10 + "apple"Spotting #VALUE! Causes
Suppose A2 contains the text "5kg" and you try =A2*2. Because "5kg" is text, not a clean number, the formula returns #VALUE!.
The same happens when a column you expect to be numeric secretly holds text imported from another system.
The cure is to clean the data first, often with functions like VALUE, TRIM, or SUBSTITUTE, so the cell holds a true number before you calculate.
=A2*2The #REF! Error
The #REF! error means a formula points to a cell reference that no longer exists. The word REF is short for reference.
This usually appears after you delete a row or column that a formula depended on. The formula loses its target and cannot recover the address.
Unlike #N/A, which means a value was not found, #REF! means the location itself is gone. You must repoint the formula to a valid cell to fix it.
=SUM(A2:#REF!)How #REF! Happens
Picture a formula =C2+D2. If you delete column D, the formula has nothing to add and becomes =C2+#REF!.
This is why deleting columns in a busy workbook can break many formulas at once. Each broken reference shows the same #REF! code.
To avoid it, prefer hiding columns over deleting them, or check which formulas depend on a column before removing it.
Other Errors to Know
A few more errors round out the family:
#NAME?means the spreadsheet does not recognize a function name or named range, often a typo like=SUMM(A1:A5).#NUM!means a number is invalid or too large, such as the square root of a negative.#NULL!means you used a space between ranges that do not intersect.
Each code points to a specific cause, so reading it carefully saves time.
=SUMM(A1:A5)Reading Errors Like a Pro
The key skill is treating each error as a diagnostic message, not a failure. Ask yourself what the code is telling you:
#DIV/0!dividing by nothing#N/Alookup found nothing#VALUE!wrong data type#REF!deleted reference
Once you can name the cause, choosing the right fix becomes straightforward. The rest of this course shows you those fixes.
Quick Check
Test what you have learned about error types.
Recap: Error Types
You now recognize the main spreadsheet errors and their meanings:
#DIV/0!dividing by zero or a blank cell#N/Aa lookup could not find the value#VALUE!a formula got the wrong type of data#REF!a referenced cell or column was deleted#NAME?a function name or range is misspelled
Reading the code tells you the cause. Next you will learn IFERROR to replace these errors with clean, friendly results.
Frequently asked questions
Is the “Understanding Error Types” lesson free?
Yes — the full text of “Understanding Error Types” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.
What will I learn in “Understanding Error Types”?
Recognize what DIV0, NA, VALUE, and REF errors mean. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Excel Formulas Academy?
No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Understanding Error Types” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Excel Formulas Academy lesson?
Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Understanding Error Types
- Catching Errors With IFERROR
- Targeting Missing Lookups With IFNA
- Detecting Problems With ISERROR