Na on VLOOKUP? Meaning & How to Fix It

Errors & fixes · Updated November 23, 2026

The short answer: #N/A in Excel means the VLOOKUP function could not find the value you searched for in the first column of your table array. It is Excel’s way of saying “not available.” The most common cause is a simple typo or a formatting mismatch, but it can also happen when the lookup column is not the leftmost column, when you use approximate match by mistake, or when your data contains extra spaces or numbers stored as text. Below we cover every common cause and the exact fix for each.

What #N/A Actually Means in Excel

#N/A is one of Excel’s error values. It stands for “no value is available.” Unlike #DIV/0! (division by zero) or #VALUE! (wrong data type), #N/A specifically means the lookup process completed but found nothing to return. In a VLOOKUP, that happens when the lookup value does not match any entry in the first column of the table array you specified.

For example, if you write =VLOOKUP("Smith", A2:C10, 2, FALSE) and “Smith” is not in A2:A10, Excel returns #N/A. The function did not break; it simply could not find a match.

How VLOOKUP Works (and Where It Fails)

VLOOKUP has four arguments: lookup_value, table_array, col_index_num, and range_lookup. The lookup value is what you search for. The table array is the range of cells you search in. The column index number tells Excel which column to return from, and range_lookup (TRUE or FALSE) controls whether you want an exact or approximate match.

Three structural rules must hold for VLOOKUP to work:

  • The lookup value must be in the first column of the table array. If your IDs are in column B and you search A2:C10, VLOOKUP will never find them.
  • The column index number must be at least 1 and no greater than the number of columns in the table array. If you ask for column 4 but the range only has 3 columns, you get #REF!, not #N/A.
  • For exact match, you must use FALSE as the fourth argument. Using TRUE (or omitting it) requires the first column to be sorted ascending, otherwise you get wrong results or #N/A.

Top 5 Reasons You Get #N/A (with Fixes)

Here are the most common causes, in order of frequency, and how to resolve each.

  1. Typo or different spelling – Check that the lookup value exactly matches the source. “John” vs “Jon” or “Smith ” with a trailing space will fail. Fix: correct the value or use TRIM to clean the data.
  2. Numbers stored as text – If your IDs are numbers but the lookup value is text (or vice versa), VLOOKUP sees them as different. Fix: select the column, go to Data > Text to Columns > Finish, or multiply by 1 using =A2*1 in a helper column.
  3. Extra spaces or non-breaking spaces – Spaces at the start or end of a cell are invisible but break matches. Fix: use =TRIM(A2) to remove them, or use =CLEAN(A2) to remove non-printing characters.
  4. Lookup column is not the leftmost – VLOOKUP can only search the first column of the range. If your key is in column B, you must reorder columns or use INDEX/MATCH instead. Fix: change the table array to start with the key column, or switch to =INDEX(C2:C10, MATCH("Smith", B2:B10, 0)).
  5. Approximate match with unsorted data – If you use TRUE or omit the fourth argument and the first column is not sorted A-Z, Excel may return #N/A. Fix: either sort the first column ascending or use FALSE for exact match.

How to Fix #N/A in Your Formula

Once you identify the cause, the fix is straightforward. Here are the most effective methods.

  • Clean the data first – Use =TRIM(A2) to remove extra spaces, and =VALUE(A2) to convert text numbers to real numbers. Apply these in helper columns and use those as the lookup range.
  • Use exact match always – Change the fourth argument to FALSE unless you truly need approximate matching (e.g., for tax brackets or grade boundaries). Exact match avoids the sorting requirement.
  • Switch to XLOOKUP – If you have Excel 2021 or Microsoft 365, XLOOKUP is more forgiving. It does not require the lookup column to be first, and it has a built-in if_not_found argument. Example: =XLOOKUP("Smith", B2:B10, C2:C10, "Not found").
  • Wrap with IFERROR – To display a friendly message instead of #N/A, use =IFERROR(VLOOKUP(...), "Not found"). This does not fix the root cause but makes the output cleaner.

VLOOKUP vs XLOOKUP vs INDEX/MATCH

VLOOKUP is the classic, but it has limitations. XLOOKUP, introduced in 2020, is now the recommended function for new workbooks. Here’s a quick comparison:

  • VLOOKUP – Works in all Excel versions, but only looks rightward and requires the lookup column to be first.
  • XLOOKUP – Works in Excel 2021 and Microsoft 365. Can look left or right, has built-in error handling, and supports wildcards. Example: =XLOOKUP("Smith", B2:B10, C2:C10).
  • INDEX/MATCH – Works in all versions. More flexible than VLOOKUP but longer to write. Example: =INDEX(C2:C10, MATCH("Smith", B2:B10, 0)).

If you are starting a new spreadsheet, use XLOOKUP if available. If you are maintaining an older file, INDEX/MATCH is a safe upgrade.

Common Misconception: #N/A Means Your Data Is Broken

Many users panic when they see #N/A, thinking their spreadsheet is corrupted. That is rarely the case. #N/A is a logical error, not a calculation error. It simply means the lookup value is not present in the specified range. The data itself is fine; the formula or the data entry is the issue.

Another misconception is that VLOOKUP is case-sensitive. It is not. “SMITH” and “smith” will match. If you need case-sensitive matching, you must use EXACT inside an array formula or use XLOOKUP with a helper column.

Frequently Asked Questions

Why does VLOOKUP return #N/A when the value is clearly there?

This almost always means a formatting mismatch. The value in the lookup column might be text while your lookup value is a number, or there are invisible spaces. Use =TRIM(A2) and =VALUE(A2) to normalize both sides, then retry.

How do I make VLOOKUP return a blank instead of #N/A?

Wrap the formula in IFERROR: =IFERROR(VLOOKUP(...), ""). This returns an empty string when no match is found. You can also use "Not found" as the second argument.

Does VLOOKUP work with wildcards?

Yes, but only with exact match (FALSE). Use * for any sequence and ? for a single character. For example, =VLOOKUP("Sm*", A2:B10, 2, FALSE) matches “Smith” or “Smithers”.

Why does VLOOKUP give #N/A when the data is sorted?

If you used TRUE for approximate match, the first column must be sorted ascending. If it is sorted descending or not sorted at all, you get #N/A or wrong results. Use FALSE for exact match to avoid this.

Can I use VLOOKUP to search for a value in a column that is not the first?

No. VLOOKUP only searches the first column of the table array. If you need to search another column, use INDEX/MATCH or XLOOKUP. For example, =INDEX(C2:C10, MATCH("Smith", B2:B10, 0)) searches column B and returns from column C.

What is the difference between #N/A and #REF! in VLOOKUP?

#N/A means the lookup value was not found. #REF! means the column index number is larger than the number of columns in the table array. For example, =VLOOKUP("Smith", A2:B10, 3, FALSE) gives #REF! because the range only has two columns.

Final Tips to Avoid #N/A

To minimize #N/A errors, follow these habits:

  • Always use FALSE for exact match unless you specifically need approximate.
  • Keep your lookup column as the leftmost column in the table array.
  • Clean your data with TRIM and VALUE before running lookups.
  • Use Excel’s built-in error checking (the green triangle) to identify text-stored-as-numbers.
  • Consider using XLOOKUP if you have Microsoft 365 – it handles errors more gracefully.

With these fixes, you can resolve #N/A in minutes and keep your spreadsheets accurate.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Errors & fixes

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.