Excel error values explained: every one, and its fix
#N/A, #VALUE!, #REF!, #DIV/0!, #NAME?, #NUM!, #SPILL! and #CALC! in one table: what each error means, the usual cause, and the first thing to check.
An Excel error value is a message in a cell, such as #N/A or
#REF!. Each error value names one kind of problem. Read the
name, and you know where to look.
Here is every one you will meet in everyday formulas. Keep this table open when a sheet goes wrong.
| Error | What Excel is saying | Usual cause | First thing to check |
|---|---|---|---|
| #N/A | No match was found | A lookup value is not in the list | Is the value really there, with no extra space? |
| #VALUE! | Wrong kind of value | Maths on a cell that holds text | Which cell holds a word or a space? |
| #REF! | The cell does not exist | A deleted row or column, or a column number past the range | Look for #REF! inside the formula |
| #DIV/0! | You divided by zero | The number under the line is 0 or empty | The cell you divide by |
| #NAME? | Excel does not know a word | A typo in a function name, or text with no quote marks | The spelling, and the quote marks |
| #NUM! | The number is impossible | A start date after an end date, or a result too big | The order of the arguments |
| #NULL! | Two ranges do not meet | A space where a comma should be | Every gap between two ranges |
| #SPILL! | The result has no room | Something is in the cells the result needs | Click the cell and look at the dashed box |
| #CALC! | The result is empty | FILTER found no rows and has no third part | Add the third part to FILTER |
The first four have a full article each: #N/A, #VALUE!, #REF! and #DIV/0!. The rest are below.
One sheet, six errors
A delivery firm keeps a fuel log for its vans. Column D is km per litre:
=C3/B3, filled down. A second list in F2:G5 gives the driver of
each van. It has V1, V2 and V4, but not V3.
| Row | A | B | C | D |
|---|---|---|---|---|
| 1 | Fuel log | |||
| 2 | Van | Litres | Km | Km per litre |
| 3 | V1 | 40 | 520 | 13 |
| 4 | V2 | 0 | 0 | #DIV/0! |
| 5 | V3 | full | 610 | #VALUE! |
| 6 | V4 | 35 | 490 | 14 |
=C4/B4 gives #DIV/0!. Van V2
used 0 litres, and Excel cannot divide by 0.
=C5/B5 gives #VALUE!. Somebody
typed the word full in B5, and a word cannot be divided.
=SUM(D3:D6) gives #DIV/0! too.
One error in a range turns the total into an error.
=VLOOKUP(A5,$F$3:$G$5,2,FALSE) gives
#N/A. V3 is not in the driver list.
=VLOOKUP(A3,$F$3:$G$5,3,FALSE) gives
#REF!. The list has 2 columns, so there is no column 3.
=IF(B5=full,"Check",B5) gives
#NAME?. Without quote marks, Excel reads full as a name it does
not know.
#NAME?: a word Excel does not know
Excel reads every word in a formula as a function, a cell or a name. When it cannot find the
word, you get #NAME?.
-
A typo:
=AVERAG(D3:D6)shows #NAME? until you add the E. -
Text with no quote marks: write
"full", not full. - A newer function in an older Excel. GROUPBY in Excel 2021 shows #NAME?, because only Microsoft 365 has it.
Type the first letters of a function and pick it from the list Excel shows. Then the spelling is always right.
#NUM!: a number that cannot exist
The formula is written correctly, but the maths has no answer. Two causes cover most cases.
Dates in the wrong order. Say B9 is 1 February 2027 and C9 is 1 January 2027. Then
=DATEDIF(B9,C9,"d") gives #NUM!, because the start date must come
first. Swap them and it gives 31.
A result too big for Excel. =10^400 gives #NUM!. In a real file,
this usually means a wrong cell in a growth formula.
#NULL!: a space instead of a comma
A space between two ranges asks Excel for the cells they share.
=SUM(B3:B6 C3:C6) gives #NULL!, because the two columns share no
cells. You meant =SUM(B3:B6,C3:C6), with a comma.
#SPILL! and #CALC!: formulas that fill many cells
These two come from formulas like FILTER, SORT and UNIQUE. They fill many cells from one formula. They are in Excel 2021, Excel 2024, Microsoft 365 and Excel for the web.
#SPILL! means the result has no room. A cell in its way is not empty. Click the cell with the error. Excel draws a dashed box round the space it needs. Clear that space and the result comes back. A formula like this also cannot spill inside an Excel table.
#CALC! most often means FILTER found nothing.
=FILTER(A3:A6,C3:C6>1000) gives #CALC!, because no van drove
over 1000 km. Add a third part for the empty case:
=FILTER(A3:A6,C3:C6>1000,"None").
Fix it, trap it, or flag it
Before you hide an error, ask what it is telling you. Every error is one of three things.
-
A mistake in the formula. The
#REF!from column 3 is one. Fix the formula. Never hide it. -
A fact about the data. V3 has no driver on the list yet. That is true, so show
it in words:
=IFNA(VLOOKUP(A5,$F$3:$G$5,2,FALSE),"Not listed")gives Not listed. -
A problem that shows no error at all. A number saved as text is the usual
one.
=ISNUMBER(B5)is how a formula finds it.
Now look at what IFERROR does to van V3.
=IFERROR(C5/B5,0) gives 0. The log now says V3 drove 0 km per
litre. The real problem, the word full in B5, is hidden. Somebody will read that 0 as a fact.
Which function catches which error
| Function | Catches | Use it for |
|---|---|---|
| IFERROR | Every error | A division that may meet a zero |
| IFNA | Only #N/A | A lookup that may miss |
| ISERROR | TRUE for every error | A test inside IF |
| ISNA | TRUE only for #N/A | A test inside IF |
| ISERR | TRUE for every error except #N/A | Rarely needed |
=IFERROR(D4,"No fuel") gives No fuel.
=IFNA(D4,"No fuel") still gives #DIV/0!, because IFNA only
catches #N/A. That is the point of IFNA. The
IFERROR vs IFNA article covers the choice in
detail.
Questions people ask
Is ##### an error?
No. The column is too narrow to show the number or date. Double click the line between the column letters to widen it. A negative date or time also shows as #####.
How do I find where an error starts?
Click the cell. On the Formulas tab, open Error Checking and click Trace Error. Excel draws arrows from the cells the error came from. Evaluate Formula, on the same tab, works through the formula one step at a time.
Can I total a column that has an error in it?
Fix the error first if you can. If you cannot, =AGGREGATE(9,6,D3:D6)
adds the numbers and skips the errors. On the fuel log it gives 27. The 9 means SUM, and the 6
means skip errors.
Are there other error values?
Yes, but you rarely meet them. Microsoft 365 has a few more, such as #FIELD! and #BLOCKED!. They come from linked data and other special features, not from everyday formulas.
Where can I practise this?
In the lessons below. Each lesson is a real sheet you type into, and each answer is checked when you press Enter. The formula engine page explains how the checking works.