Get the Excel Errors Practice Workbook
The practice file from the tutorial. Work through #VALUE!, #SPILL!, #REF!, #DIV/0! and #N/A and fix each one with SUM, IFERROR and IFNA.
1. #### in Excel: Column Too Narrow
When a cell shows ####, Excel isn’t reporting an error. The number is too wide for the column.

Excel won’t cut a number off, because you might read or report the wrong value. Text is different: Excel cuts it off or lets it run into the next cell.
The fix is to make the column wider. Select a cell in the column and go to Home > Format > AutoFit Column Width.

Or double-click the line to the right of the column letter.

If the column is already wide and you still see ####, check for a negative date or time. Excel can’t show those, so a formula that subtracts a later date from an earlier one shows #### in a cell formatted as a date.
2. #VALUE! Error: Text in a Calculation
#VALUE! usually means a formula got the wrong type of data, like text where it expects a number.
In this example, each row subtracts last year (PY) from Sales. Rows with an empty PY cell still work, because Excel treats an empty cell as 0.

Type text like missing into one of those cells and the formula returns #VALUE!, because Excel can’t subtract text from a number.

Pro tip: if text may end up in those cells, wrap the reference in SUM: =B3-SUM(C3). SUM ignores text, so the formula keeps working.

SUM ignores text in the cells it references, so the rows with missing now return the Sales value instead of an error.
3. #SPILL! Error: Something Blocks the Results
#SPILL! comes with dynamic array functions like UNIQUE, FILTER and SORT.
They work in Microsoft 365, Excel 2021 and later, and Excel for the web.
The formula wants to return several results, but something already sits in the cells it needs. In the example, =UNIQUE(B3:B8) can’t spill because a note is in the way.

Delete or move whatever is in the way and the results spill. Select the cell with the error and Excel outlines the range it needs.

4. #NAME? Error: Misspelled Function Name
Examine the following formula and see if you can spot why it is generating a #NAME? error message.

Excel has no function called ADD.
The function that adds cells is SUM. Change =ADD(B3:B8) to =SUM(B3:B8) and the error is gone.
#NAME? most often comes from a typo in a function name, like BLOOKUP instead of VLOOKUP. Start typing the name and pick the function from the list, so Excel spells it for you.
5. #REF! Error: Deleted or Broken References
#REF! means a formula points to a cell that no longer exists. That happens when you delete the row, column or sheet it refers to.
In this example, the formula subtracts PY (column C) from Sales (column B). Then column B is deleted.
Before: both columns are there and the formula works.

After: column B is gone, so every formula shows #REF!.”

You can also get #REF! when you copy a formula to a new spot. Relative references move with the formula, and sometimes they point off the sheet.
For example, put this formula in cell A100:
=SUM(B1:B10)Now copy it to cell A1, 99 rows up.
The references move up 99 rows as well. There are no rows above row 1, so Excel turns the formula into =SUM(#REF!). If a formula must keep pointing to the same cells, use absolute references like $B$1:$B$10.
Because we are working with Relative References, the cell references will change to rows that are roughly 100 rows above rows 1 through 10 (i.e., B1:B10).
6. #DIV/0! Error: Dividing by Zero or an Empty Cell
#DIV/0! shows up when a formula divides by zero. In the example, =B3/C3-1 calculates the change against last year.

Two rows have no PY value. Excel treats an empty cell as 0, so those rows return #DIV/0!. For more on this formula, including a zero or negative base, see how to calculate percentage change in Excel.
Hide Errors with IFERROR
Don’t delete the formulas that show errors. When the missing number arrives later, there’s no formula left to calculate it. Handle the error inside the formula instead.
The IFERROR function tests a formula to see if it results in an error, any error.
If an error occurs, the error message is captured and replaced by something of your choosing.
Instead of the error, you can show:
- A 0 (zero)
- An empty cell (two double quotes with nothing between them)
- A user-friendly error message (text contained within double-quotes, like “Item not found”)

The formula becomes =IFERROR(B3/C3-1, ""). Copy it down and the errors disappear, but every row still has the same formula. When a PY value arrives, the result shows up on its own.
7. #N/A Error: Lookup Value Not Found
#N/A shows up most often with lookup functions like VLOOKUP and XLOOKUP.
It means the value you’re looking for isn’t in the lookup range.

Here, Limbo isn’t in the customer list. The correct name is Limba.
IFERROR would hide this error, but it hides every other error too. You might want to see a #REF! or #NAME? error, because those mean the formula itself is broken.
IFNA vs IFERROR
To catch only the not-found case, use IFNA instead of IFERROR.
IFNA only replaces #N/A and lets every other error through:
=IFNA(VLOOKUP(F3, $A$2:$B$7, 2, FALSE), "Person doesn't exist") IFNA works in Excel 2013 and later.

In Microsoft 365 and Excel 2021 or later, XLOOKUP has its own if_not_found argument, so you don’t need IFNA:
=XLOOKUP(F3, $A$2:$A$7, $B$2:$B$7, "Person doesn't exist")Download the Excel Errors Practice Workbook
Get the Free Practice Workbook
Every error from the tutorial, ready to break and fix.
Frequently Asked Questions
Why does Excel show #### instead of a number?
The column is too narrow to show the number. Double-click the line to the right of the column letter to widen it. If the column is already wide, the cell may hold a negative date or time.
How do I fix the #VALUE! error in Excel?
#VALUE! usually means a formula uses text where it expects a number. Correct the cell that holds text, or wrap the reference in SUM, like =B3-SUM(C3), so the text is ignored.
What does #SPILL! mean in Excel?
A formula like UNIQUE or FILTER wants to return several results, but something blocks the cells it needs. Select the formula cell to see the range, then clear or move whatever is in the way.
How do I fix a #REF! error?
#REF! means the formula points to a cell that no longer exists, often after a row, column or sheet was deleted. Press Ctrl+Z right away to undo the delete, or rewrite the formula with the correct references.
Should I use IFERROR or IFNA?
Use IFNA with lookup formulas when you only want to catch values that are not found. IFERROR hides every error, including #REF! and #NAME?, so it can hide a formula that is broken.
How do I hide #DIV/0! errors in Excel?
Wrap the formula in IFERROR, like =IFERROR(B3/C3-1, ""). The cell stays empty until the divisor has a value, and the formula keeps working when the data arrives.
Leila Gharani
Founder of XelPlus and ten-time Microsoft MVP. Leila helps over 500,000 professionals master Excel, Power BI, and data automation through practical, real-world training.







