Excel Lessons

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.

Published . 6 min read.

By Ali, Founder, Excel Lessons

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.

ErrorWhat Excel is sayingUsual causeFirst thing to check
#N/ANo match was foundA lookup value is not in the listIs the value really there, with no extra space?
#VALUE!Wrong kind of valueMaths on a cell that holds textWhich cell holds a word or a space?
#REF!The cell does not existA deleted row or column, or a column number past the rangeLook for #REF! inside the formula
#DIV/0!You divided by zeroThe number under the line is 0 or emptyThe cell you divide by
#NAME?Excel does not know a wordA typo in a function name, or text with no quote marksThe spelling, and the quote marks
#NUM!The number is impossibleA start date after an end date, or a result too bigThe order of the arguments
#NULL!Two ranges do not meetA space where a comma should beEvery gap between two ranges
#SPILL!The result has no roomSomething is in the cells the result needsClick the cell and look at the dashed box
#CALC!The result is emptyFILTER found no rows and has no third partAdd 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 VanLitresKmKm per litre
3 V14052013
4 V200#DIV/0!
5 V3full610#VALUE!
6 V43549014

=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.

  1. A mistake in the formula. The #REF! from column 3 is one. Fix the formula. Never hide it.
  2. 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.
  3. 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

FunctionCatchesUse it for
IFERROREvery errorA division that may meet a zero
IFNAOnly #N/AA lookup that may miss
ISERRORTRUE for every errorA test inside IF
ISNATRUE only for #N/AA test inside IF
ISERRTRUE for every error except #N/ARarely 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.

Related articles