If your Excel formula is not working, the fastest fix is usually to check three things in order: whether the cell is formatted as Text, whether Show Formulas is turned on, and whether the formula is calculating at all. Most "broken" formulas are not broken — they are stored as text, hidden behind a display setting, or stuck in manual calculation mode. Work through the checks below and you will almost always find the cause in under a minute.
What You'll Need
- Excel for Windows, Excel for Mac, Excel for the web, or the Excel mobile app (steps are written for desktop; mobile differences are noted).
- The workbook containing the formula that is not working.
- Permission to edit the workbook — a read-only or protected sheet will block changes.
Step-by-Step
- Look at the formula bar. Click the cell with the problem formula and read the formula bar at the top. If you see the formula starting with an apostrophe (') or with no equals sign at all, Excel is treating it as text. Delete the apostrophe or add = at the start and press Enter.
- Check the cell format. Select the cell, right-click, choose Format Cells, and look at the Number tab. If the category is Text, change it to General, then re-enter the formula by pressing F2 and Enter. Formatting alone will not recalculate an existing formula, so you must re-enter it.
- Turn off Show Formulas. On the Formulas tab, look at the Show Formulas button. If it is highlighted, every cell displays its formula instead of its result. Click it once to turn it off. The keyboard shortcut Ctrl+` (the grave accent key, usually below Esc) toggles the same setting.
- Set calculation to Automatic. Go to Formulas > Calculation Options and confirm Automatic is selected. If Manual is chosen, formulas only update when you press F9. Switch to Automatic, then press F9 once to recalculate the whole workbook.
- Force a recalculation. Press Ctrl+Alt+F9 (Windows) or Cmd+= (Mac) to force a full rebuild of all formulas. This clears cached results that can go stale after large edits or links to other files.
- Check for leading or trailing spaces. A space before = or inside a cell reference (for example "= A1+B1") causes an error. Click the formula bar and look for stray spaces, then remove them.
- Verify the cell references. If the formula returns a wrong value rather than an error, check whether references are absolute ($A$1) or relative (A1). Copying a formula down a column shifts relative references, which is often the real cause of "wrong" results. Press F4 while editing a reference to cycle between absolute and relative.
- Check for circular references. If Excel shows a warning about a circular reference, a formula is referring to its own cell, directly or through a chain. Go to Formulas > Error Checking > Circular References to see which cell is flagged, then rewrite the formula so it does not depend on itself.
- Look at the error value. Each error has a specific meaning: #DIV/0! means dividing by zero or an empty cell, #VALUE! means a text value where a number is expected, #REF! means a deleted or moved reference, #NAME? means a misspelled function name or missing quotation marks around text, and #N/A usually means a lookup value was not found. Fix the underlying cause rather than hiding the error.
- Check the function name and separators. Confirm the function is spelled correctly and that you are using the right argument separator. Most English-language Excel installations use commas; some regional settings use semicolons. If you copied a formula from a website that uses semicolons, replace them with commas (or vice versa).
- Unprotect the sheet if needed. If the formula will not update or you cannot edit it, the sheet may be protected. Go to Review > Unprotect Sheet and enter the password if you have it. Without the password, ask the workbook owner.
- Test with a simple formula. In an empty cell, type =1+1 and press Enter. If that returns 2, Excel is calculating normally and the problem is specific to your formula. If it returns 1+1 as text, go back to steps 1 and 2.
Common Mistakes
- Typing a formula into a cell formatted as Text and assuming it will calculate. It will not until the format is changed and the formula is re-entered.
- Leaving Calculation Options on Manual after opening a large workbook, then wondering why values are stale.
- Using the wrong separator for your region — commas versus semicolons is a very common cause of #NAME? and parse errors.
- Forgetting that copying a formula with relative references changes the cells it points to.
- Deleting a column or row that a formula depends on, which produces #REF! and requires the reference to be rebuilt.
- Wrapping text values in the wrong kind of quote. Excel needs straight double quotes ("), not curly quotes copied from a document.
Tips
- Use the Evaluate Formula tool on the Formulas tab to step through a formula one calculation at a time and see exactly where it goes wrong.
- Press Ctrl+` to toggle between showing formulas and showing results — a quick way to audit a sheet.
- Keep one blank test cell where you paste parts of a long formula to isolate which section is failing.
- If a formula depends on another workbook, keep that workbook open or use the full file path; closed linked workbooks can return stale or zero values.
- Name key ranges with Formulas > Define Name so formulas are easier to read and less likely to break when rows are inserted.
Troubleshooting
If the steps above did not fix it, work through these in order, simplest first:
- Restart Excel. Close the workbook, close Excel entirely, and reopen it. This clears temporary calculation states.
- Update Excel. Check for updates through your Microsoft 365 account or the app's update option. Older builds can misbehave with newer functions.
- Open the file in Excel for the web. If the formula works there but not on desktop, the issue is likely a desktop setting such as calculation mode or an add-in.
- Disable add-ins temporarily. Go to File > Options > Add-ins, manage Excel Add-ins, and clear the boxes. Re-enable them one at a time to find the culprit.
- Copy the formula to a new workbook. Paste values only first, then rebuild the formula. If it works in the clean file, the original workbook is corrupted or has a conflicting named range.
- Check for merged cells. Formulas that reference merged cells often return unexpected results. Unmerge and retest.
- Repair the file. Use File > Open > Browse, select the file, click the arrow next to Open, and choose Open and Repair. This can fix structural damage but may drop some formatting — make a backup copy first.
If none of that works, the formula itself may be logically wrong rather than technically broken. Rebuild it from scratch in a blank cell using small pieces, testing each piece before combining them.
Frequently Asked Questions
Why does my formula show as text instead of calculating?
The cell is almost certainly formatted as Text, or the formula starts with an apostrophe. Change the format to General, then press F2 and Enter to re-enter the formula.
Why is my formula not updating when I change a cell?
Calculation Options is likely set to Manual. Go to Formulas > Calculation Options and select Automatic, then press F9.
What does #NAME? mean in Excel?
Excel does not recognise a function name or a named range in the formula. Check spelling, and make sure text arguments are wrapped in straight double quotes.
Why does copying my formula give the wrong result?
Relative references shift when copied. Use absolute references ($A$1) for cells that should stay fixed, or press F4 while editing a reference to cycle the reference type.
Can I fix a formula without changing the whole sheet?
Yes. Work in a blank cell first, build and test the formula there, then paste it into the target cell once it returns the expected result.
Why does my formula work on one computer but not another?
Regional settings change the argument separator (comma versus semicolon), and different Excel versions may not support newer functions. Check both on the machine where it fails.