#NAME?Supported on: Microsoft Excel® & Google Sheets™
How to Fix the #NAME? Error in Excel & Google Sheets
The #NAME? error occurs when Excel or Google Sheets cannot recognize text within a formula, typically due to misspelled function names, missing quotation marks around strings, or invalid named ranges.
Formula Syntax Comparison
Broken Formula
=IF(B2=Active, XLOOKP(A2, D2:D50, E2:E50), 0)
Corrected Formula
=IF(B2="Active", XLOOKUP(A2, D2:D50, E2:E50), 0)
Manual Step-by-Step Fix
1
Step 1
Verify spelling of all function names against official Excel/Sheets function documentation.
2
Step 2
Enclose all text string values in double quotation marks (").
3
Step 3
Check Name Manager in Excel or Named Ranges in Google Sheets to confirm variable definitions.