In this guide
Appearance
Appearance
By Scot, 10+ years in IT support and helpdesk ·How these guides are checked
Read which error Excel returned before changing anything, because each one names a different cause. #REF! means a referenced cell was deleted, #VALUE! means text where a number belongs, and #DIV/0! means dividing by an empty or zero cell.
Checked against Microsoft 365 Roadmap, Office release notes - Current Channel and between 5 Aug 2026 and 12 Sep 2026. Nothing published in that period has been linked to this guide.
#REF!, #VALUE!, #DIV/0! and the rest are not failures of Excel — they are Excel's answer to a question it could not finish. Each one names a different cause, and reading which one you have is what turns a red cell into a two-minute fix. This guide decodes the errors you will actually meet and fixes each at its source.
In this guide
An Excel error value is a result rather than a crash — the formula ran, and Excel is telling you in six or seven characters what it could not do.
Nothing is broken about the file and nothing has been lost. The cell holds a real formula that produced a real answer, and the answer happens to be "I could not finish this". Excel chooses the wording deliberately, so two errors that look equally red can have nothing in common: #REF! is about a cell that vanished, #VALUE! is about the kind of data in a cell that is still there. Rewriting the formula before reading the message is how people spend twenty minutes fixing something that was never wrong.
Read the cell, match it to this table, then go to the section that deals with it.
| Error | What Excel is telling you | Go to |
|---|---|---|
#REF! | A reference in the formula is no longer valid. What it pointed at is gone. | Step 2 |
#VALUE! | The formula was given the wrong kind of data, usually text where a number belongs. | Step 3 |
#DIV/0! | Something is being divided by zero, or by a cell that is empty. | Step 4 |
#NAME? | Excel does not recognize some text in the formula — a misspelled function, a missing quote mark, or a range name that is gone. | Step 5 |
#N/A | A lookup ran and found no match for the value you asked for. | Step 5 |
#SPILL! | The formula returned more than one result and the cells it needs are occupied. | Step 6 |
#NUM! | The formula asks arithmetic for something it cannot produce, or the result is too large to hold. | Troubleshooting |
#NULL! | Two ranges were given as overlapping and they do not overlap. | Troubleshooting |
##### | Not an error at all. The column is too narrow to display the number already in the cell. | Troubleshooting |
Note: If the cell shows no error but the number is wrong, the fault is in the formula's logic rather than in Excel's reading of it. Start at How to Write Your First Excel Formula if the formula is new to you, and at Understanding Absolute and Relative Cell References in Excel if the wrong number only appeared after you dragged the formula down a column.
Excel returns #REF! when a formula points at a cell, row, column or sheet that no longer exists.
#REF! where a cell address used to be — for example =SUM(B2:#REF!).#REF! text with the address the formula should now point at, and press Enter. The cell shows a number again.Note: A formula that returns zeros or the same answer in every row instead of an error has a different cause — a reference that moved when you dragged it. See Understanding Absolute and Relative Cell References in Excel.
#VALUE! means the formula was handed the wrong kind of data, most often text sitting where a number belongs.
#DIV/0! appears when a formula divides by zero, or by a cell that is empty.
Click the cell and read the formula bar to find the divisor — whatever sits after the /.
Look at that cell. An empty cell counts as zero here, so a formula waiting on a number you have not entered yet shows this error until the number arrives.
Enter the missing value. The error is replaced by the result the moment you press Enter.
Where the blank is expected — a percentage column in which some rows genuinely have no denominator — wrap the formula so it returns something readable instead:
=IFERROR(A2/B2, "")Two double quotes with nothing between them leave the cell looking empty. Put 0 or "n/a" there instead if a visible marker suits the sheet better.
Warning:
IFERRORhides every error type, not only this one. Build the plain division first and confirm it returns the right number, then wrap it. Wrap it too early and a genuine#REF!in the same formula disappears behind the same tidy blank.
Note: A total showing
0with no error code at all is a different problem again. Check the bottom-left of the status bar for the wordsCircular References— that means the formula is adding up a range that includes its own cell. See How to Fix Circular Reference Warnings in Excel.
Both errors mean Excel went looking for something and came back without it, but they look in different places.
#NAME? — Excel does not recognize text in the formula.
=SOM(A1:A10) returns #NAME?; =SUM(A1:A10) does not. If the formula is new to you, How to Write Your First Excel Formula walks through the parts from the equals sign up.=IF(A1=Yes,1,0) returns #NAME? because Excel reads Yes as the name of something; =IF(A1="Yes",1,0) works.#NAME? when the workbook recalculates there, and the formula bar may show the prefix _xlfn. in front of the function name.#N/A — a lookup found no match.
=IFNA(VLOOKUP(G2,$A$2:$D$500,4,FALSE), "Not found") shows readable text in place of the error. IFNA catches only #N/A and leaves every other error visible, which is what you want while you are still building the sheet.#SPILL! means the formula returned more than one result and the cells those results need are not empty.
#SPILL! only exists in Excel for Microsoft 365, Excel 2024, Excel 2021 and Excel on the web. Excel 2019 and Excel 2016 have no dynamic arrays, so they never return it — a formula from a newer Excel returns #NAME? there instead (Step 5).
Functions such as XLOOKUP, FILTER, UNIQUE and SORT can return a whole block of values from a single formula, and Excel writes them into the cells below and to the right of the one you typed in. That block is the spill range. If anything already sits in it — a value, a stray space, a merged cell — Excel returns #SPILL! rather than overwriting what is there.
Note: Merged cells are the version of this that catches people out most, because a merged block cannot hold a spilled result. Select the merged cell, click Home > Merge & Center to unmerge it, and the formula spills. Unmerging keeps the text — it moves into the top-left cell of the block.
When the formula in front of you looks correct, the fault is in a cell it depends on.
Tip: For a long formula where the error appears somewhere in the middle, click Formulas > Evaluate Formula and press Evaluate repeatedly. Excel works through the formula one piece at a time and shows you the exact step at which the error first appears. This button is on Windows only.
TIP
A cell full of ##### is not an error. The column is too narrow to display the number already inside it — double-click the right-hand edge of the column header and the value appears.
| Symptom / Error | Potential Cause | Solution |
|---|---|---|
#NUM! | Invalid numeric value | The formula asks arithmetic for something it cannot produce — the square root of a negative number, for instance — or the result is too large for Excel to hold. Check the numbers going in rather than the formula. |
#NULL! | Ranges do not intersect | A space between two ranges tells Excel to use only the cells they share. =SUM(A1:A5 C1:C5) returns this because those two ranges never touch. Replace the space with a comma. |
##### | Column too narrow | Double-click the right-hand boundary of the column header to fit the column to its contents. |
A total shows 0, no error code | Circular reference | The SUM range includes the total cell itself. See How to Fix Circular Reference Warnings in Excel. |
| The cell shows the formula text, not a result | Cell was formatted as Text before typing | Set the cell to General in the Number group of the Home tab, then double-click the cell and press Enter to re-enter the formula. |
| Every formula on the sheet shows its text | Show Formulas is switched on | Click Formulas > Show Formulas to switch it back off. This is a display toggle — no formula or value is affected either way. |
#NAME? only after a colleague opened the file | Function missing from their Excel version | Their version never shipped that function. Rebuild the formula with one both versions have. To find out which version they are on, ask them to read File > Account > Product Information — that is more reliable here than the Compatibility Checker, which Microsoft documents as checking against Excel 2013, 2010 and 2007 rather than 2016 or 2019. |
IT Tip Tuesday
Get a short, actionable IT tip in your inbox every week.
Nothing loads from beehiiv until you click. Once it does, the form sets beehiiv's own cookies and loads beehiiv's own analytics.