Most Excel errors fall into a few predictable buckets: a formula that points at text instead of a number, a cell reference that no longer exists, a file that will not open, or a calculation setting that has been switched off. The fastest fix is to click the small warning icon next to the cell (or use the error-checking rule) and read what Excel says, then correct the underlying value or reference rather than retyping the formula. Below is a step-by-step routine that covers the common error values, file-level problems, and the settings that cause formulas to stop recalculating.
What You'll Need
- A computer with Excel installed (Microsoft 365, Excel 2021, 2019, or 2016). The steps below use the desktop app; the web version has fewer repair options.
- The workbook that is showing the error, saved somewhere you can access it.
- Permission to edit the file (a read-only copy will not save your fixes).
- For shared or protected files, the password or the owner's approval to unprotect the sheet.
Step-by-Step
- Identify the error value. Look at the cell. Excel shows one of these: #DIV/0!, #N/A, #NAME?, #NULL!, #NUM!, #REF!, #VALUE!, or a green triangle warning. Each points to a different cause, so note which one you have before changing anything.
- Click the warning icon. A small diamond or exclamation icon appears next to a cell with a detected error. Click it to see a short explanation and options such as Show Calculation Steps or Trace Error. This is the quickest way to see which part of the formula is failing.
- Use Evaluate Formula for a stubborn formula. Select the cell, then go to Formulas > Evaluate Formula. Click Evaluate repeatedly to step through the calculation. The box shows the current result of each piece, so you can see exactly where a #VALUE! or #REF! appears.
- Fix #DIV/0! by checking the divisor. The formula is dividing by zero or by an empty cell. Point the divisor at a cell that contains a number, or wrap the formula in IFERROR to show a blank or a message instead: =IFERROR(A2/B2,"").
- Fix #VALUE! by checking data types. This usually means a formula is doing math on text, or a date is stored as text. Select the cell, look at the formula bar, and confirm the referenced cells contain numbers, not labels with spaces or apostrophes. Use VALUE() to convert a text number, or retype the entry without the leading apostrophe.
- Fix #REF! by repairing deleted references. #REF! appears when a formula points to a cell, row, or column that was deleted. Undo the deletion (Ctrl+Z) if it was recent, or edit the formula and reselect the correct range. If you deleted a sheet that formulas depend on, you will need to recreate it or update the references.
- Fix #NAME? by checking spelling and defined names. Excel does not recognise a function name or a named range. Check for a typo such as =SUMM(A1:A5) instead of =SUM(A1:A5), and confirm any named range still exists under Formulas > Name Manager.
- Fix #N/A in lookups. A VLOOKUP, XLOOKUP, or MATCH did not find the value. Check for trailing spaces (use TRIM), mismatched data types (text "123" versus number 123), or a lookup range that does not include the column you are returning. Wrapping the formula in IFNA gives a cleaner message.
- Fix #NUM! by checking the magnitude. The result is too large or too small for Excel to store, or a function like SQRT received a negative number. Reduce the input size or correct the sign.
- Turn calculation back on if formulas are stale. If formulas show old results, go to Formulas > Calculation Options and select Automatic. Then press F9 to recalculate. If the workbook is set to Manual, nothing updates until you force it.
- Repair a file that will not open. In Excel, go to File > Open > Browse, select the file, click the arrow next to Open, and choose Open and Repair. Choose Repair first; if that fails, choose Extract Data to recover values and formulas. Save a copy before repairing, because repair can drop formatting.
- Check for circular references. If Excel warns about a circular reference, a formula refers to its own cell, directly or through a chain. Go to Formulas > Error Checking > Circular References to jump to the cell, then rewrite the formula so it does not include itself.
Common Mistakes
- Retyping the whole formula when only one reference is wrong. Edit the reference instead; it is faster and less error-prone.
- Hiding errors with IFERROR before understanding them. IFERROR is fine for presentation, but it can mask a real data problem such as a missing lookup value.
- Deleting rows or columns that other formulas depend on. Insert or move cells instead of deleting them when possible.
- Assuming a formula is broken when calculation is set to Manual. Check Formulas > Calculation Options first.
- Pasting values as text. A number pasted with a leading apostrophe stays text and will trigger #VALUE! in arithmetic.
Tips
- Use Trace Precedents and Trace Dependents under Formulas > Trace Precedents to see which cells feed a formula and which cells it affects.
- Press Ctrl+` (the grave accent key) to toggle showing formulas instead of results; it makes broken references easier to spot.
- Keep a backup copy before running Open and Repair or deleting sheets.
- Use TRIM and CLEAN on imported data to remove hidden spaces that break lookups.
- Name your ranges under Formulas > Name Manager so formulas are easier to read and fix.
Troubleshooting
If the error persists after the steps above, work from simplest to most drastic. First, close and reopen the workbook, then restart Excel. Second, check whether the file is read-only or protected; a protected sheet will block edits to locked cells. Third, open the file on another computer or in Excel for the web to see whether the problem travels with the file or with your installation. Fourth, if Excel itself misbehaves across many files, run Office repair from Windows Settings > Apps > Installed apps, select Microsoft 365 or Office, and choose Modify > Repair. As a last resort, copy the data into a new workbook and rebuild the formulas there; this clears corruption that repair cannot fix. If the file contains macros, check that macros are enabled in the Trust Center, because disabled macros can leave formulas returning errors.
Frequently Asked Questions
Why does Excel show #VALUE! when my cells look like numbers?
The cells are probably stored as text, often because they were pasted from another system or have a leading apostrophe. Select the cells, use Data > Text to Columns and finish, or retype the value. The status bar will show a count instead of a sum while the cells are still text.
What does #REF! mean and can I undo it?
#REF! means a formula refers to a cell, row, column, or sheet that no longer exists. Press Ctrl+Z immediately to undo the deletion if it was recent; otherwise edit the formula and reselect the correct range.
Why are my formulas not updating?
Calculation is likely set to Manual. Go to Formulas > Calculation Options and choose Automatic, then press F9. Also check that the workbook is not in a state where editing is disabled.
How do I find all errors in a large workbook?
Use Formulas > Error Checking > Error Checking to step through each detected error, or use Go To Special (Ctrl+G > Special) and select Formulas > Errors to highlight every error cell at once.
Does Open and Repair delete my data?
It can drop formatting, charts, or some features, but it tries to keep values and formulas. Always save a copy of the original file before repairing so you can compare.
Can I stop errors from showing at all?
You can wrap formulas in IFERROR to display a blank or a custom message, but that hides the cause. Fix the underlying reference or value first, then use IFERROR only for presentation.