#NAME? error: what it means and how to fix it

The spreadsheet found a word in the formula that is not a function, a cell or a named range.

The usual causes

How to fix it

  1. Put every piece of text inside straight double quotes.
  2. Check the function name: start typing it and pick it from the suggestions.
  3. Use INDEX with MATCH where XLOOKUP is not available.

Fix a broken formula live

The words Pass and Fail have no quotes. Cell C2 shows #NAME?. Change the formula in the bar until the error goes away, or press “Show the fix”.

ABCDEF
1
2
3
4
5
6
7
8

#NAME? "Pass" isn't a cell or a function. Text inside a formula needs quotes: "Pass".

How to fix #NAME? →

Uses IF. Start with the free spreadsheet lessons →

Runs in your browser; nothing you type is sent anywhere. Works like Excel, Google Sheets and LibreOffice Calc for the common functions.

Learn the skill behind it

Make decisions with IF, free →

Other spreadsheet errors