Formula and function debugging
Broken formulas, nested function errors, lookup failures, and calculations that quietly return wrong numbers.
Excel Troubleshooting
Excel troubleshooting means finding out why a workbook shows errors, calculates the wrong answer, runs slowly, or will not open, then fixing the cause rather than the symptom. Start with the error value in the cell: it names the problem type. If there is no error but the number is wrong, check calculation mode and number formats, then step through the formula with Evaluate Formula. This guide covers the common fixes. If you are stuck, Excel Access Expert diagnoses and repairs the workbook for you.
| What you see | First thing to try |
|---|---|
| An error value in a cell (#REF!, #N/A, #VALUE!) | Look up the error in the table below; the type points to the cause. |
| A formula shows the wrong number but no error | Set calculation to Automatic, check for numbers stored as text, then use Evaluate Formula. |
| The formula text shows instead of the result | Change the cell format from Text to General, re-enter the formula, and check that Show Formulas is off. |
| Excel is slow, freezes, or runs out of resources | Look for volatile functions, oversized ranges, and circular references (see the slow workbook section). |
| The file will not open or says it is corrupt | Use File > Open > Open and Repair on a copy of the file. |
| A macro stopped working | Check Trust Center settings, whether the file is blocked, and missing references (see the macro section). |
Each error value points to a specific type of problem. Use this table to find the cause before you change anything.
| Error | What it means | Most common cause | How to fix it |
|---|---|---|---|
| #REF! | A cell the formula points to no longer exists | A row, column, or sheet was deleted, a range was pasted over, or a linked workbook is missing | Press Ctrl + Z straight after the deletion. Otherwise re-point the formula to the right cells, or check Data > Edit Links for a missing source file. |
| #VALUE! | A value is the wrong type for the formula | Text where a number is expected, hidden spaces, or ranges of different sizes | Clean the data with TRIM or VALUE, then step through the formula with Formulas > Evaluate Formula. |
| #DIV/0! | The formula divides by zero or an empty cell | A blank or zero denominator | Guard the division: =IF(B2=0,"",A2/B2) |
| #NAME? | Excel does not recognize a name in the formula | A misspelled function, an undefined named range, text missing quotation marks, or a function your Excel version lacks (XLOOKUP needs Excel 2021 or later, or Microsoft 365) | Check the spelling, define the missing name in Name Manager, or use a function your version supports. |
| #N/A | A lookup cannot find what it is looking for | Extra spaces, a text versus number mismatch, or a value that is truly missing from the lookup range | Compare the two values with TRIM and check their data types. Use exact match. Wrap in IFNA only once you know a missing match is expected. |
| #NUM! | A number is invalid for the calculation | An impossible argument, such as the square root of a negative number, or an iterative function such as IRR or RATE that cannot converge | Check the arguments and give IRR or RATE a better starting guess. |
| #NULL! | Two ranges do not intersect | A space typed where a comma or colon was intended | Use a colon for a range (A1:A10) and a comma between arguments. |
| #SPILL! | A dynamic array formula has no room to spill | Cells in the spill range are not empty, or the formula sits inside an Excel table | Clear or move whatever blocks the spill range, or move the formula outside the table. |
| ##### | The cell cannot display the value | The column is too narrow, or a date or time result is negative | Widen the column and check the date or time calculation. |
| Circular reference warning | A formula refers to its own cell, directly or through other cells | A total that includes the cell it is written in | Use Formulas > Error Checking > Circular References to jump to the cell, then remove the self-reference. |
These are the hardest problems because nothing flags them. They are also the most expensive, since people make decisions from the wrong number. Check these first:
Under Formulas > Calculation Options, choose Automatic. Press F9 to force a recalculation.
A green triangle in the corner of the cell is the clue. Convert the values with Text to Columns or by multiplying by 1, and fix the cell format.
SUM counts hidden rows. Use SUBTOTAL or AGGREGATE when you want filtered results only.
A VLOOKUP with the last argument omitted or TRUE uses approximate match and can return a wrong row. Use FALSE (or 0) for an exact match.
A missing dollar sign ($) lets a reference shift. Lock the parts that must stay fixed.
Note the exact error value, message, or behavior. The type of error narrows the cause: #REF! is a missing reference, #N/A is a failed lookup, #VALUE! is a wrong data type.
Confirm Formulas > Calculation Options is set to Automatic and that numbers are not stored as text. Many wrong results come from these two settings.
Use Formulas > Evaluate Formula to step through the calculation, and Trace Precedents to see which cells feed it.
Select part of a formula in the formula bar and press F9 to see what that part returns, then press Esc to cancel so you do not overwrite the formula.
Make the change on a copy of the workbook, then confirm the totals still agree with a known good figure before replacing the original.
A slow workbook is almost always doing too much work every time a cell changes. Look for these causes, roughly in order of how often they appear:
OFFSET, INDIRECT, TODAY, NOW, and RAND recalculate on every change, along with everything that depends on them.
Press Ctrl + End. If the cursor lands far below your real data, formatting or stray entries are bloating the file.
Formulas such as SUMPRODUCT over entire columns force Excel to process over a million rows.
Copying and pasting cells over time can create thousands of overlapping rules.
Broken links slow opening, and a faulty add-in can cause crashes. Start Excel in Safe Mode (hold Ctrl while launching) to test.
If the workbook keeps freezing when several people use it, or the data keeps growing, the cause is the tool rather than the formulas. See Excel-to-database solutions and Excel vs Access.
Work on a copy and try these in order:
Choose File > Open, select the file, click the arrow beside Open, and choose Open and Repair. Try Repair, then Extract Data.
Right-click the file, open Properties, and select Unblock if you see that option. Files from email or the web can be blocked.
Start Excel in Safe Mode by holding Ctrl while launching it, then open the file to rule out add-ins.
Check OneDrive or SharePoint version history for an earlier good version, and File > Info > Manage Workbook > Recover Unsaved Workbooks for unsaved work.
If it still will not open, stop trying new tools on the original and send us a copy.
Our Excel file repair service covers files that will not open at all.
Microsoft blocks macros by default in files that come from the internet or email. Unblock the file in Properties and review your Trust Center macro settings.
In the VBA editor, open Tools > References and look for an entry marked MISSING. A missing library breaks code that has nothing wrong with it.
Older code that calls Windows functions needs PtrSafe declarations to run in 64-bit Office.
Code that works on one PC fails on another when paths differ or when it assumes the wrong sheet is active.
Fixing it yourself is sensible for a single error. Get help when any of these is true:
The workbook drives payroll, invoicing, month-end, or reporting that others rely on.
The numbers are wrong and you cannot find where the error starts.
The file is corrupt, and the only copy is the one that will not open.
A macro written by someone who has left stopped working.
The same problems keep returning, which usually points to structure or tool choice.
Our team works on a copy of your file, explains the root cause in writing, and returns a corrected workbook you can run. For ongoing work, such as automation or rebuilding a fragile workbook, see our Microsoft Excel consultant services.
Diagnose, fix, and harden your Microsoft Excel workbooks.
Broken formulas, nested function errors, lookup failures, and calculations that quietly return wrong numbers.
Workbooks that will not open, crash on load, or show corruption warnings. We recover what the file allows and rebuild the rest.
Slow, bloated workbooks cleaned up by trimming ranges, restructuring formulas, and removing needless recalculation.
Runtime errors, compile errors, missing references, and macros that broke after an Office update.
Inconsistent data cleaned up and validation rules added so bad entries stop at the door.
Broken links, add-ins, and connections to Access, SQL Server, Power BI, and other data sources.
Send the workbook through secure sharing or a redacted sample. We work on a copy and never on your only original.
We trace every error to its source and document what we find, usually within the first hour of looking.
We repair the workbook and check the affected formulas, macros, and connections against known figures.
You get the corrected file and a written summary of what was wrong and how to avoid it.
Excel Access Expert provides remote Microsoft Excel troubleshooting to businesses across the United States, Canada, and the United Kingdom. No on-site visit is needed. Teams in finance, logistics, manufacturing, sales, HR, and healthcare administration send us workbooks such as financial models, inventory trackers, billing logs, and payroll calculators. If a file holds sensitive data, we can start from a redacted copy.
You get the cause explained and the problem fixed, not a pile of workarounds.
We trace each error to its source instead of patching the symptom, then explain it in plain English.
We typically reply within 1 to 2 hours, and many urgent problems are resolved the same day.
We debug and repair macros and add error handling so failures are visible.
When the problem is that the data outgrew Excel, we tell you and can move it to Access or SQL Server.
FAQ
Find answers to common questions about our services
Share a copy of your Excel file for a free estimate. We diagnose the issue and tell you what it will take, with no obligation.
Prefer to talk? Call us at +1 385 386 3860