Sub topic 1
What an Excel error value tells you
When a formula fails, Excel shows an error value in the cell instead of a result. Each error value has its own name, and the name tells you what kind of problem to look for. This chapter gives you the working model. Later chapters fix each error in detail.
Prerequisites
This chapter assumes you can already do the following:
- Enter and edit formulas in a worksheet.
- Use cell references and ranges such as A2 and A2:A10.
- Use basic functions such as SUM, AVERAGE and VLOOKUP.
- Tell a number from text in a cell. Numbers align right by default, and text aligns left.
What an error value is
An error value is a special result that begins with #. It is not a message about the whole workbook. It describes one formula in one cell. Excel could not produce a valid result for that formula.
Errors also spread. If B2 shows an error and C2 is =B2*2, then C2 shows the same error. When you see many errors in a sheet, find the first one in the chain. Fixing it often clears the rest.
The common error values
The table lists the errors this tutorial covers, with the usual cause of each.
| Error | Usual cause |
|---|---|
| `#DIV/0!` | The divisor is zero or an empty cell. |
| `#VALUE!` | A value has the wrong type, such as text where a number is needed. |
| `#REF!` | A reference is invalid, often because a cell, row or column was deleted. |
| `#NAME?` | Excel does not recognize a function or name, often because of a typo. |
| `#N/A` | A lookup found no match. |
| `#NUM!` | The formula produced an invalid number, such as the square root of a negative. |
| `#NULL!` | Two ranges were separated by a space and do not overlap. |
| `#SPILL!` | A dynamic array result has no clear space to fill. |
A column of ##### is not an error value. It means the column is too narrow to show the number. Widen the column to see it.
Reading the cause from the name
Treat the error name as a first diagnosis. Two examples show how.
This formula returns #REF!:
=VLOOKUP(E2,A2:B100,3,FALSE)The range A2:B100 has two columns, but the formula asks for column 3. The index is outside the range, so Excel reports an invalid reference. Changing 3 to 2 fixes it.
This formula returns #NAME?:
=SUMM(A1:A5)SUMM is not a function. Correcting it to SUM fixes the error.
In both cases the error name pointed to the right category of problem before you looked at any detail.
A simple way to work
- Read the error name and match it to a cause in the table.
- Click the cell and look at the formula in the formula bar.
- Check the cells the formula refers to. The bad value is often in the data, not in the formula.
- Fix the formula or the data, then confirm the error is gone.
Exercise
Cell B2 contains #DIV/0!. Cell C2 contains =B2*10 and also shows #DIV/0!. Which cell should you fix first, and why?
Show answer
Fix B2 first. C2 shows the error only because it uses B2. Once B2 returns a valid result, C2 will calculate normally.
Exercise
A formula returns #NAME?. Which error category does this point to, and what is the first thing you should check?
Show answer
It points to a name Excel does not recognize. Check the formula for a misspelled function or defined name.