VLOOKUP Giving #N/A? Fixes for the Most Common Causes

Errors & fixes · Updated November 23, 2026

If your VLOOKUP is returning #N/A, the most common reason is that the lookup value you’re searching for simply doesn’t exist in the first column of your table array—or it exists but with a hidden difference like trailing spaces, number stored as text, or an exact match issue. The quickest fix is to use =VLOOKUP(lookup_value, table_array, col_index_num, FALSE) with the fourth argument set to FALSE for an exact match, and then check your data for formatting inconsistencies. Below, we’ll walk through every common cause, how to diagnose each one, and the exact formulas to fix them.

Why VLOOKUP Returns #N/A: The Core Mechanics

VLOOKUP searches for a value in the leftmost column of a table range, then returns a value from a column to the right. The #N/A error is Excel’s way of saying “I looked, but I couldn’t find a match.” The error appears when:

  • The lookup value is not present in the first column of the table array.
  • The lookup value is present, but there’s a mismatch in data type (e.g., number vs. text).
  • The lookup value has invisible characters (spaces, non-breaking spaces, line breaks).
  • The fourth argument is TRUE (or omitted) and the first column isn’t sorted ascending, causing a false miss.
  • The table array doesn’t actually include the column you’re trying to return.

Let’s break each of these down with concrete examples and fixes.

Common Cause #1: Exact Match vs. Approximate Match

VLOOKUP’s fourth argument, range_lookup, controls whether the function looks for an exact match (FALSE) or an approximate match (TRUE or omitted). If you omit it, Excel defaults to TRUE, which expects the first column to be sorted in ascending order. If your data isn’t sorted, VLOOKUP can return #N/A even when the exact value exists.

Fix: Always use FALSE for exact matches unless you’re deliberately doing an approximate match (like finding a tax bracket). For example:

With lookup value in A2, table in D2:F100, and you want the value from column F (the 3rd column):

=VLOOKUP(A2, D2:F100, 3, FALSE)

This forces Excel to find an exact match. If it still returns #N/A, the value truly isn’t there, or there’s a data formatting issue.

Common Cause #2: Data Type Mismatch (Number vs. Text)

One of the sneakiest causes: the lookup value is a number, but the first column contains numbers stored as text (often indicated by a green triangle in the cell, or left-aligned by default). Conversely, the lookup value could be text that looks like a number. VLOOKUP treats them as different.

How to check: Use the ISTEXT or ISNUMBER functions on both the lookup value and the first column cells. For example, in B2: =ISTEXT(A2) returns TRUE if A2 is text.

Fix: Convert all values to the same type. To convert numbers stored as text to real numbers, you can use:

=VLOOKUP(VALUE(A2), D2:F100, 3, FALSE)

Or better, clean the source data. Select the first column, go to the error warning (if present) and choose “Convert to Number.” Alternatively, use the -- operator: =VLOOKUP(--A2, D2:F100, 3, FALSE) to coerce text to a number.

Common Cause #3: Invisible Characters (Spaces, Non-Breaking Spaces)

Trailing spaces, leading spaces, or non-breaking spaces (character code 160) are invisible but break matches. For example, if cell D2 contains “Apple ” (with a trailing space) and your lookup value is “Apple”, VLOOKUP won’t match.

How to check: Use =LEN(A2) and compare to the number of visible characters. Or use =CODE(RIGHT(A2,1)) to see the ASCII code of the last character—space is 32, non-breaking space is 160.

Fix: Use the TRIM function to remove extra spaces, and the CLEAN function to remove non-printing characters. For non-breaking spaces, you can use SUBSTITUTE:

=VLOOKUP(TRIM(CLEAN(SUBSTITUTE(A2,CHAR(160),""))), D2:F100, 3, FALSE)

This cleans the lookup value. You may also want to clean the first column of your table using the same technique in a helper column, then VLOOKUP against that helper column.

Common Cause #4: Lookup Value Not in the First Column

VLOOKUP only searches the first column of the table array. If your lookup value is in column C, but your table array starts at column D, it will never find it. This is a common mistake when copying formulas.

Fix: Ensure your table array starts with the column that contains your lookup values. For example, if your lookup value is in column A and your data is in columns A through C, use A:C as the table array, not B:C.

How to Diagnose the Exact Cause Step by Step

Instead of guessing, use these steps to isolate the issue:

  1. Check the fourth argument: Is it FALSE? If not, change it to FALSE and see if the error goes away.
  2. Manually search the first column: Press Ctrl+F (Windows) or Cmd+F (Mac) and type your lookup value. If it’s not found, the value doesn’t exist—check for typos.
  3. Check for extra spaces: Click on a cell in the first column and look at the formula bar. If there’s a space after the text, that’s your culprit.
  4. Check data types: Use =ISNUMBER(A2) on your lookup value and =ISNUMBER(D2) on the first cell of your table. If they differ, you have a type mismatch.
  5. Use the MATCH function to test: =MATCH(A2, D2:D100, 0). If this returns #N/A, the value isn’t in the first column. If it returns a number, then VLOOKUP should work—so the problem is likely in the column index or table array.

Advanced Fixes: IFERROR, XLOOKUP, and Helper Columns

Once you’ve fixed the root cause, you can also make your formula more robust:

  • Wrap with IFERROR: =IFERROR(VLOOKUP(A2, D2:F100, 3, FALSE), "Not Found") returns a friendly message instead of #N/A.
  • Use XLOOKUP instead: If you have Excel 2021 or Microsoft 365, XLOOKUP is more flexible—it searches left and right, defaults to exact match, and handles errors gracefully. Example: =XLOOKUP(A2, D2:D100, F2:F100, "Not Found").
  • Use a helper column to clean data: Add a column that cleans the first column with TRIM and CLEAN, then VLOOKUP against that helper column.

Frequently Asked Questions

Q: Why does VLOOKUP return #N/A even though I can see the value in the table?
A: The most likely reasons are: the value is stored as text vs. number, there are hidden spaces, or the table array doesn’t start with the correct column. Use the MATCH function to test if the value is in the first column, and check for spaces with LEN.

Q: What does #N/A mean in Excel?
A: #N/A stands for “Not Available” and is Excel’s way of saying a lookup function couldn’t find a match. It’s not an error in the formula syntax—it’s a data mismatch issue.

Q: How do I make VLOOKUP ignore #N/A errors?
A: Wrap your VLOOKUP in IFERROR like this: =IFERROR(VLOOKUP(...), "") to return an empty string, or any custom text. This is useful for reports.

Q: Can VLOOKUP search for a value that is not in the first column?
A: No, VLOOKUP can only search the first column of the table array. If you need to search a different column, use INDEX/MATCH or XLOOKUP.

Q: Why does VLOOKUP work on some rows but not others?
A: This usually indicates inconsistent data—some rows have clean values, others have spaces or different data types. Use the LEN and ISNUMBER checks to identify the problematic rows.

Q: Does VLOOKUP work with wildcards?
A: Yes, when using FALSE (exact match), you can use wildcards in the lookup value: * for any sequence, ? for a single character. For example, =VLOOKUP("*Apple*", D2:F100, 3, FALSE) finds any cell containing “Apple”.

Alternatives to VLOOKUP You Should Know

If you’re tired of #N/A headaches, consider these alternatives:

  • XLOOKUP (Excel 2021/365): Searches left or right, defaults to exact match, has built-in error handling. Syntax: =XLOOKUP(lookup_value, lookup_array, return_array, [if_not_found]).
  • INDEX/MATCH: More flexible than VLOOKUP, works with any column, and doesn’t break if you insert columns. Example: =INDEX(F2:F100, MATCH(A2, D2:D100, 0)).
  • FILTER (Excel 2021/365): Returns all matching values, not just the first. Example: =FILTER(F2:F100, D2:D100=A2, "Not Found").

Each has its strengths, but for most users, moving to XLOOKUP eliminates most #N/A issues because it defaults to exact match and allows you to specify a value to return when no match is found.

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.