Quick answer
Excel shows an error value when a formula can’t give a result, and its name points at the reason. These are the ones you’ll meet at work:
- #N/A: a lookup found no match.
- #VALUE!: a value of the wrong type, such as text in a calculation.
- #REF!: a reference to cells that were deleted.
- #DIV/0!: a division by zero or by an empty cell.
- #NAME?: a misspelled function or a name Excel doesn’t know.
- #NUM!: a number Excel can’t calculate with, such as the square root of a negative number.
- #NULL!: two ranges with a space between them that don’t meet.
- #SPILL!: a result that needs more cells, with something in the way.
- #CALC!: a calculation with no result, such as FILTER finding nothing.
A cell full of #### isn’t an error: the column is too narrow for the number.
An error value looks alarming, but it’s Excel being precise: it tells you the formula can’t work, and its name tells you roughly why. Once you can read the names, most errors are quick to fix.
What an error value tells you
When a formula can’t calculate, Excel puts an error value in the cell instead of a result. The error is a value like any other: formulas that use the cell receive it, so it travels from cell to cell until something deals with it. One #VALUE! in a line of an expense claim makes the claim’s total #VALUE! too:
=B3* C3 can't multiply, and =SUM( D2:D5) passes the error on. Put a number in C3 and both cells clear. In D6, =SUM(D2:D5) returns #VALUE!.That’s why a sheet can look full of errors when only one cell is wrong. Find the first cell in the chain, the one whose own inputs have no error, and fix that.
Every error at a glance
| Error | What it means | Usual cause at work | First thing to try |
|---|---|---|---|
| #N/A | No value is available | A lookup such as VLOOKUP or XLOOKUP found no match | Check the value is in the list, without extra spaces or numbers stored as text |
| #VALUE! | A value is the wrong type | Text, such as TBC or n/a, where a calculation needs a number | Replace the text with a number |
| #REF! | A reference points at cells that no longer exist | A row, column or sheet the formula used was deleted | Undo the deletion, or rewrite the reference |
| #DIV/0! | Division by zero | The divisor is 0 or an empty cell, such as a month with no sales yet | Fill in the divisor, or test it first with IF |
| #NAME? | Excel doesn’t recognize a name | A misspelled function, an undefined name, or text without quotation marks | Correct the spelling or add the quotation marks |
| #NUM! | A number Excel can’t work with | An impossible calculation, such as the square root of a negative number, or a result too large | Check the inputs |
| #NULL! | Two ranges don’t meet | A space between two ranges where a comma belongs, as in =SUM(B2:B4 D2:D4) | Use a comma for two ranges, a colon for one |
| #SPILL! | A result that spills has no room | A value sits in the cells the result needs | Clear the cells in the way |
| #CALC! | The calculation has no result | FILTER finds no rows and has nothing to show | Give FILTER its third argument, the value to show when nothing matches |
| #### | Not an error | The column is too narrow, or a date or time is negative | Widen the column |
Here is each one made on purpose, so you can see the formula next to what it returns:
=SQRT( -16) asks for an impossible number, =INDEX( B2:B3, 5) asks for a fifth cell in a range of two, and =SUMM( B2:B3) uses a function Excel doesn't have. Formula in B: B2 =1500/0, B3 ="TBC"*2, B4 =SQRT(-16), B5 =INDEX(B2:B3,5), B6 =NA(), B7 =SUM(B2:B3 B5:B6), B8 =SUMM(B2:B3), B9 =FILTER(A2:A3,A2:A3="Overdue").#SPILL! needs a little more room to show: type =SEQUENCE(5) in a cell with a value somewhere in the four cells below it, and the formula shows #SPILL! until you clear that value. #N/A in Excel goes through the lookup error in depth, and the free lesson When Excel shows an error practices reading and fixing the common ones.
Fix it or hide it?
The best fix removes the cause: the missing price, the deleted column, the TBC typed where a number belongs. When an error is expected and harmless, such as a month with no sales yet, you can show something more useful instead.
IFERROR returns a formula’s result, or your second argument when the formula gives an error:
IFERROR catches #N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME? and #NULL!. That’s also its risk: wrapped around everything, it hides a misspelled function or a deleted column along with the harmless error you meant. For lookups, IFNA catches only #N/A and lets other mistakes show. For a division, testing the divisor says exactly what you mean: =IF(C2=0,"",B2/C2).
Practice this in ProExcel
Show each product's change from last month, and New where there were no sales to compare.
ProExcel checks your answer the moment you press Enter.
The free lesson Replace an error with IFERROR has more on when hiding an error is fine and when it isn’t.
Let Excel find the errors
Excel checks formulas as you work and marks a cell it thinks is wrong with a small triangle in its top-left corner, green unless you’ve changed it. Select the cell and a warning button appears beside it; its menu says what Excel noticed and offers Help on This Error, Ignore Error, Edit in Formula Bar and Error Checking Options.
To go through every error on a sheet, choose Formulas > Error Checking, in the Formula Auditing group. The arrow next to that button has Trace Error, which draws arrows from the cells the formula uses, and Evaluate Formula, in the same group, works through a formula one step at a time so you can see where it breaks.
To select every cell that shows an error, press F5 (or choose Home > Find & Select > Go To), click Special, choose Formulas, leave only Errors ticked and click OK.
The rules behind the triangles are under File > Options > Formulas on Windows and Excel > Preferences > Error Checking on a Mac. Excel for the web doesn’t run these checks.
#### isn’t an error
A column of ##### means the numbers or dates are too wide for the column. Widen the column, and they appear. If a column of dates or times still shows #### when it’s wide, a formula has produced a negative date or time, such as an end time before a start time. The free lesson Fit columns and copy formatting with Format Painter practices widening columns to clear them.
Rarer error values
A few more appear only with particular features:
- #FIELD!: a field asked of a linked data type, such as a stock or a place, doesn’t exist.
- #BLOCKED!: a feature the formula needs is turned off, by a setting, a sign-in or a license.
- #CONNECT!: Excel can’t reach the service a linked data type or an external link needs.
- #BUSY!: Excel is still fetching a value, such as a picture, and the cell fills in when it arrives.
- #PYTHON!: Python code in a Python in Excel cell has an error.
A circular reference, a formula that uses its own cell, isn’t an error value. Excel shows a warning, names the cell in the status bar and puts 0 in it until you change the formula.
Frequently asked questions
How many types of errors are there in Excel?
Ordinary formulas produce nine error values: #N/A, #VALUE!, #REF!, #DIV/0!, #NAME?, #NUM!, #NULL!, #SPILL! and #CALC!. A few more, such as #FIELD!, #CONNECT! and #PYTHON!, appear only with linked data types, external data and Python in Excel.
What do Excel's error codes mean?
Each names what went wrong: #N/A, a value not found; #VALUE!, a wrong type of value; #REF!, a missing cell; #DIV/0!, a division by zero; #NAME?, an unknown name; #NUM!, an impossible number; #NULL!, ranges that don’t meet; #SPILL!, no room for a result; #CALC!, a calculation with no result.
Is #### an error in Excel?
No. #### means the column is too narrow to show the number or date in it, so widen the column. If it stays when the column is wide, the cell holds a negative date or time.
How do I find all the errors on a sheet?
Press F5, click Special, choose Formulas and leave only Errors ticked, then click OK. Excel selects every cell whose formula shows an error. Formulas > Error Checking goes through them one at a time.
How do I hide errors in Excel?
Wrap the formula in IFERROR, such as =IFERROR(B2/C2,""), or in IFNA for a lookup. Hide only errors you expect, because IFERROR also hides mistakes such as a misspelled function. To remove the green triangle from one cell, choose Ignore Error from its warning button.
Practice this with real formulas
ProExcel's free course turns each idea into a formula you type yourself, checked the moment you press Enter. Five minutes a lesson, on your phone or computer.