✦ Excel Guide

Excel Formula Not Working? 9 Fixes for Every Error

The complete guide to diagnosing and fixing every Excel formula problem — from #N/A to formulas showing as text instead of calculating.

Fix Your Formula Free →
📅 April 2026 · 5 min read · ExcelForm

1. Formula Showing as Text Instead of Calculating

If your formula appears as =VLOOKUP(A2,Sheet2!A:B,2,FALSE) in the cell instead of the result, the cell was formatted as Text before you entered the formula.

Fix: Select the cell → Home tab → Number Format dropdown → change from Text to General → press F2 to edit the cell → press Enter. The formula will now calculate.

Also check there is no space before the = sign. A formula starting with a space is treated as plain text.

2. #VALUE! Error — Wrong Data Type

Formula is trying to do math on a text cell, or you passed the wrong type to a function.

Common causes

Numbers stored as text (imported from CSV), mixing text and numbers in a SUM range, using text in a date calculation, VLOOKUP looking up a number but the table stores it as text.

Fixes

Use =VALUE(A2) to convert text to number. Use =TRIM(A2) to remove hidden spaces. Check the cell format — if it shows a green triangle, Excel knows it is a text-number.

3. #N/A Error in VLOOKUP or XLOOKUP

The lookup value cannot be found in the table. This is the most common Excel error and has a few distinct causes:

Suppress #N/A with IFERROR
=IFERROR(VLOOKUP(TRIM(A2), Sheet2!A:B, 2, FALSE), "Not found")

4. #REF! Error — Deleted or Moved Reference

A cell or range the formula pointed to has been deleted, or a VLOOKUP col_index_num is larger than the table width.

5. Formula Works on Row 1, Breaks When Copied Down

Cell references shift when you copy a formula. Fix: add dollar signs ($) to lock the references that should not move.

Without $ — breaks when copied
=VLOOKUP(A2, D2:E100, 2, FALSE) ← D2:E100 shifts to D3:E101, D4:E102...
With $ — stays fixed when copied
=VLOOKUP(A2, $D$2:$E$100, 2, FALSE) ← $D$2:$E$100 never shifts

Press F4 after selecting a cell reference to toggle through locking options: A2 → $A$2 → A$2 → $A2 → A2.

6. #DIV/0! — Division by Zero

Fix with IF check
=IF(B2=0, 0, A2/B2) ← returns 0 when B2 is zero =IFERROR(A2/B2, 0) ← same result, shorter syntax

7. #NAME? — Unrecognised Function

Causes: misspelled function (VLOKUP → VLOOKUP), text not in quotes (Paid instead of "Paid"), or using a function unavailable in your Excel version (XLOOKUP in Excel 2019).

Fix: check spelling carefully, add double quotes around text values, or check your Excel version supports the function you are using.

8. Formula Not Updating Automatically

Excel calculation is set to Manual. Fix: go to Formulas tab → Calculation Options → Automatic. Or press F9 to force recalculate immediately. This is a common issue when opening files from other users.

9. Formula Returns a Wrong Number (Not an Error)

The formula runs without error but the result is wrong. Common causes:

Fastest fix: Paste your formula into ExcelForm's Fix Formula tool with the error message and get an AI diagnosis instantly — free, no signup.

Generate the Formula Instantly

Free AI formula generator — no signup, no credit card. 10 queries per day.
All 9 tools included free.

Try ExcelForm Free
FAQ

Frequently Asked Questions

Why does my Excel formula show the formula text instead of the result?
The cell is formatted as Text. Fix: select the cell, change the format to General (Home → Number Format), then re-enter the formula by pressing F2 then Enter. Also check there is no space before the = sign.
How do I stop #N/A errors from showing in my spreadsheet?
Wrap your lookup formula with IFERROR: =IFERROR(VLOOKUP(A2,Sheet2!A:B,2,FALSE),"") returns blank on error. Or use "Not found" instead of blank. XLOOKUP has this built in via the 4th argument.
Why does my formula work on one row but give wrong results on others?
Almost always a missing dollar sign ($) in a reference that should be locked. The formula shifts as you copy it down. Add $ to lock the lookup table: $A$2:$B$100 instead of A2:B100.
Can I fix Excel formula errors automatically?
Yes — paste your formula into ExcelForm's Fix Formula tool at excelform.xyz/fix-excel-formula. The AI diagnoses the exact cause and returns a corrected formula with a full explanation. Free, no signup required.