Error Fixes Guide · Prompt: “Fix #NAME? error caused by unquoted text criteria in IF formula checking Status”

How to Fix #NAME? Errors in Excel Formulas

Verified by LiveFormulaLab Engineering Team • Updated November 2026

Fix #NAME? errors in Excel caused by misspelled functions, unquoted text strings, or Excel 365 functions in older Excel versions.

Verified Error Fixes Syntax

=IF(B2="Approved", C2, 0)

How This Formula Works (Step-by-Step)

Excel displays #NAME? when it does not recognize a function name, Named Range, or unquoted word inside a formula.

Step 1: Verify every text value is wrapped in straight double quotes ("Approved", not Approved). Without quotes, Excel searches for a Named Range called Approved.

Step 2: Check function spelling (e.g., VLOOKUP vs VLOKUP) and confirm modern functions like XLOOKUP or FILTER exist in your Excel version.

Formula Syntax & Arguments Breakdown

Eliminates #NAME? unrecognized identifier errors caused by missing quotation marks around text criteria, misspelled function names, or unsupported regional/version functions.

Argument / ClauseRequirementData TypeRole & Behavior
logical_test (B2="Approved")RequiredQuoted ComparisonEvery literal text string inside a formula must be wrapped in straight double quotes "".
value_if_true (C2)RequiredCell / ValueReturned when the quoted condition matches.
value_if_false (0)RequiredFallbackReturned otherwise.

3 Real-World Use Cases

  • Fixing =IF(B2=Approved, C2, 0) where missing quotes trigger #NAME?.
  • Replacing XLOOKUP/TEXTSPLIT with INDEX/MATCH when sharing files with Excel 2016 users.
  • Repairing broken Named Ranges after copying sheets between workbooks.

Cross-Platform Equivalents

Excel
=IF(B2="Approved", C2, 0)
SQL
SELECT CASE WHEN status = 'Approved' THEN budget ELSE 0 END FROM requests;
Python Pandas
np.where(df['Status'] == 'Approved', df['Budget'], 0)

Common Mistakes & Pro Tips

Pitfalls & How to Fix Them

  • Mistake: Writing =IF(B2=Approved, C2, 0) without quotes tells Excel to look for a Named Range called "Approved", failing with #NAME?.

    Fix: Wrap every text literal in straight double quotes: "Approved".

  • Mistake: Pasting curly smart quotes (“Approved”) copied from a blog post or Word document causes #NAME? or syntax errors.

    Fix: Replace curly typographic quotes with plain straight ASCII quotes (").

  • Mistake: Missing the colon in a range like SUM(C2 C6) or typos like VLOOKP(...) immediately trigger #NAME?.

    Fix: Check Excel’s autocomplete tooltip as you type function names and verify range colons (:).

Engineering Pro Tips

  • If a colleague on Excel 2016 opens a workbook using XLOOKUP or TEXTJOIN, they will see #NAME?—use INDEX/MATCH for legacy compatibility.
  • Use Formulas > Name Manager to verify whether any defined Named Ranges were misspelled or deleted.
  • In Google Sheets, always translate Excel’s @ or _xlfn. prefixed formulas cleanly before sharing.

Frequently Asked Questions

Why do smart curly quotes copied from a website cause #NAME??
Excel only recognizes straight ASCII quotes ("). Replace curly quotes (“ ”) with straight quotes.
Why does XLOOKUP show _xlfn.XLOOKUP and #NAME? for my coworker?
Your coworker is opening the workbook in an older desktop Excel (2016/2019) that lacks dynamic array / XLOOKUP support.
Can a missing colon in a range like B2B6 cause #NAME??
Yes! Excel reads B2B6 as an unknown Named Range name instead of B2:B6.

Related Formulas & Guides