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 / Clause | Requirement | Data Type | Role & Behavior |
|---|---|---|---|
logical_test (B2="Approved") | Required | Quoted Comparison | Every literal text string inside a formula must be wrapped in straight double quotes "". |
value_if_true (C2) | Required | Cell / Value | Returned when the quoted condition matches. |
value_if_false (0) | Required | Fallback | Returned 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
- How to Fix #DIV/0! Errors in Excel Using IFERROR — Fix #DIV/0! divide-by-zero errors in Excel percentage and average formulas cleanly using IFERROR or explicit zero checks.
- How to Fix #NUM! Errors in Excel Formulas — Resolve #NUM! errors in Excel DATEDIF, SQRT, IRR, and LARGE/SMALL formulas caused by inverted dates, negative roots, or out-of-range ranks.
- How to Find and Fix Circular Reference Warnings in Excel — Find and eliminate Excel circular reference warnings caused by a SUM or IF formula accidentally referencing its own output cell.
- How to Fix #ERROR! Formula Parse Errors in Google Sheets — Fix Google Sheets #ERROR! (Formula parse error) caused by missing parentheses, European semicolon locales, or unescaped quotes in QUERY.