#N/A error: what it means and how to fix it

A lookup (VLOOKUP, XLOOKUP, MATCH, INDEX with MATCH) could not find the value you asked for. The formula is fine; the value is not where you said it would be.

The usual causes

How to fix it

  1. Check the spelling of the value you are looking up.
  2. Wrap it in TRIM to remove stray spaces: =VLOOKUP(TRIM(D2),A2:B4,2,FALSE).
  3. Use FALSE (or 0) as the last VLOOKUP argument for an exact match.
  4. Only when "not found" is a normal answer, show a message with IFERROR or the fourth XLOOKUP argument. Do not hide errors you have not understood.

Fix a broken formula live

D2 contains "Banana " with a space at the end. Cell E2 shows #N/A. 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

#N/A A lookup (VLOOKUP, XLOOKUP, MATCH, INDEX with MATCH) could not find the value you asked for. The formula is fine; the value is not where you said it would be.

How to fix #N/A →

Uses VLOOKUP. 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

Practice cell references in the free formula lesson →

Find a row with VLOOKUP in the Pro lesson →

Other spreadsheet errors