What #N/A, #VALUE!, #REF! and #DIV/0! mean, and how to fix them
By the MyDataFixer team · Updated
The short answer
An error like #N/A or #DIV/0! means a formula couldn't calculate a result. The error name tells you why: #N/A means a lookup found nothing, #DIV/0! means division by zero, #VALUE! means the wrong kind of value, #REF! means a deleted cell, and #NAME? means a misspelled function. Fix the cause, and the error disappears by itself.
Why errors matter
One error can spread. If a cell shows #N/A, every total, average or chart that uses that cell also fails or shows a wrong result. In a big sheet, a single error hidden in row 4,000 can make the total at the top show an error too. That is why it's worth finding them all, not just the ones you can see.
What each error means
| Error | What it means | Usual fix |
|---|---|---|
| #N/A | A lookup didn't find a match | Check the value exists and is spelled the same |
| #DIV/0! | Division by zero or by an empty cell | Check the number you divide by |
| #VALUE! | The wrong type of value, such as text in a sum | Make sure the cells hold numbers |
| #REF! | The formula points to cells that were deleted | Rebuild the reference or undo the deletion |
| #NAME? | A misspelled function or unknown name | Check the spelling of the function |
| #NUM! | An impossible number, like the square root of -1 | Check the inputs |
| #NULL! | A space instead of a colon or comma in a range | Write A1:B2, or A1,B2 |
| #SPILL! | The result needs more room than is free | Clear the cells below or beside it |
The common errors in more detail
#N/A: nothing found
You see #N/A with VLOOKUP, XLOOKUP, MATCH and similar functions when the value you look for isn't in the list. Very often it is there, but written slightly differently: an extra space (“Lyon ” instead of “Lyon”), a number stored as text (“123” instead of 123), or a different spelling. Clean both sides and try again.
#DIV/0!: dividing by zero
A formula such as =A2/B2 shows #DIV/0! when B2 is 0 or empty. This often happens in rows where data hasn't been entered yet. You can hide it with =IFERROR(A2/B2,""), which shows an empty cell instead, but first check whether the empty value is a mistake.
#VALUE!: wrong kind of value
Adding text to a number, like =A2+B2 where B2 contains “ten” or “500 rs”, gives #VALUE!. Numbers stored as text and stray spaces are common causes.
#REF!: missing cells
If you delete a row or column that a formula used, the formula loses its target and shows #REF!. Undo the deletion if you can, or write the reference again.
#NAME?: unknown name
A typo such as =SUMM(A2:A10) instead of =SUM(A2:A10), or a function that your version of Excel doesn't have, gives #NAME?.
Example
| product | price | quantity | price per item |
|---|---|---|---|
| Pens | 100 | 10 | 10 |
| Paper | 250 | 0 | #DIV/0! |
| Ink | ten | 2 | #VALUE! |
The total of the last column also shows an error, because two of its cells do.
Find errors in Excel
These steps are for Excel on a Windows or Mac computer. The Excel app on phones and tablets doesn't have these menus; on a phone, use Google Sheets or MyDataFixer instead.
- Select the whole sheet (click the corner above row 1) or one column.
- Go to Home → Find & Select → Go To Special.
- Choose Formulas, untick everything except Errors, and click OK. Every error cell is selected.
You can also use Formulas → Error Checking, which moves from one error to the next and explains each one. Click any error cell and the small warning icon next to it offers help too.
Find errors in Google Sheets
Errors show with a small red triangle in the corner of the cell. Point at the cell (or tap it) to see an explanation. To list them, use a filter on the column and look for values starting with #. IFERROR works in Google Sheets just like in Excel.
Find errors with MyDataFixer
Open your Excel or CSV file in the Error Detector. It checks every cell and lists all formula errors with their type (#N/A, #DIV/0!, #VALUE!, #REF!, #NAME?, #NUM!, #NULL!, #SPILL! and more), what each one means and how to fix it. “View affected data” shows exactly which rows contain errors.
MyDataFixer never changes formulas by itself, because the right fix depends on what the formula should do. You fix the cause, and the error is gone. In a CSV file the formulas are no longer there, only the error text, so the source sheet needs fixing. Your file stays on your device.
How to avoid formula errors next time
- Clean data before you build formulas on it: remove extra spaces and convert numbers stored as text.
- Don't delete rows or columns that other sheets use; clear their contents instead.
- Use IFERROR only where an error is expected, such as rows waiting for data.
Quick summary
Each error name tells you the cause. Find all errors with Go To Special in Excel, look for red triangles in Google Sheets, or list them all at once with the Error Detector. Then fix the cause, not just the symptom.
Common mistakes
- Hiding every error with IFERROR. The sheet looks clean, but totals are still wrong because data is missing.
- Typing over the error. Replacing the formula with a number removes the error but also the calculation.
Fix it in your browser
Free, no sign-up. Your file is processed on your device and never uploaded.
Questions and answers
Why does VLOOKUP give #N/A when the value is in the list?
Usually the two values differ slightly: an extra space, a number stored as text, or a different spelling. Clean both and try again.
How do I hide #DIV/0! errors?
Use =IFERROR(your formula,"") to show an empty cell instead. Check first that the empty or zero value isn't a mistake.
Can I find all errors at once?
In Excel, use Home → Find & Select → Go To Special → Formulas → Errors. MyDataFixer's Error Detector lists every error in the sheet.
Why does my CSV file contain #N/A as text?
The CSV was saved from a sheet that showed errors. A CSV keeps only results, so fix the formulas in the original sheet and save again.
Does MyDataFixer upload my file?
No. The file is checked in your browser, on your device.