Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

VLOOKUP Not Finding Value? 7 Real Fixes

· 6 min read · Home Tech

In this article
  1. What the error actually means
  2. The four most common causes
  3. Exact match versus approximate match
  4. Wildcards, partial matches and case
  5. Fixing it step by step
  6. If that did not work
  7. VLOOKUP versus XLOOKUP and INDEX/MATCH
  8. Frequently Asked Questions

The error "not found" or #N/A from VLOOKUP almost always means the lookup value and the table's first column don't actually match — usually because of hidden spaces, text stored as numbers, a wrong range reference, or an exact-match flag that wasn't set. Fix those four things and the formula starts returning values again.

What the error actually means

VLOOKUP searches the first column of a range for a value you supply, then returns something from a column to the right. When it returns #N/A, it is not broken — it is telling you that no cell in that first column was equal to your lookup value under the comparison rules you gave it. There are only a few reasons that happens, and they are all inspectable. Excel also offers a newer function, XLOOKUP, that handles several of these cases more gracefully, but the underlying matching logic is the same.

Before changing anything, click the cell with the formula and use Formulas > Evaluate Formula (or the Evaluate Formula button on the Formulas tab) to step through the calculation. You will see the exact lookup value and the exact range being searched, which usually reveals the mismatch immediately.

The four most common causes

  1. Trailing or leading spaces. A cell that looks like "ABC123" may actually contain "ABC123 " — invisible to you, fatal to the match. Use =TRIM(A2) in a helper column, or =LEN(A2) versus =LEN(TRIM(A2)) to confirm.
  2. Numbers stored as text (or the reverse). If your lookup value is the number 1001 but the table stores "1001" as text, VLOOKUP treats them as different. The green triangle in the corner of a cell is Excel's hint that this is happening. Convert with VALUE(), or multiply by 1, or use Text to Columns.
  3. The lookup column isn't the first column of the range. VLOOKUP can only search left-to-right from the first column of the range you give it. If the ID you're matching sits in column C but your range starts at column A, it will never find it. Either move the range to start at C, or switch to INDEX/MATCH or XLOOKUP.
  4. The range isn't locked, so it shifted. Dragging a formula down without absolute references ($A$2:$D$500) moves the table with it. By row 50 the range may no longer include your data.

Exact match versus approximate match

The fourth argument of VLOOKUP is range_lookup. TRUE (or omitted) means approximate match: Excel assumes the first column is sorted ascending and returns the largest value less than or equal to your lookup. FALSE (or 0) means exact match. For text lookups, IDs, SKUs, names and most everyday work, you want FALSE. A very common cause of "wrong value returned" or #N/A is leaving that argument out and letting Excel guess.

Approximate match is only appropriate for banded lookups — tax brackets, grade thresholds, shipping weight tiers — where the first column is genuinely sorted ascending. If it isn't sorted, approximate match returns nonsense rather than an error, which is worse.

Wildcards, partial matches and case

VLOOKUP is not case-sensitive: "apple" and "APPLE" match. If you need case-sensitive matching, use EXACT inside an array formula or switch to XLOOKUP with a comparison, but for most home and small-business spreadsheets this doesn't matter.

Wildcards work only with exact match (FALSE). The asterisk * matches any sequence of characters and ? matches a single character. So =VLOOKUP("Smith*",A2:D500,2,FALSE) finds the first entry starting with Smith. If your data literally contains asterisks or question marks, prefix them with a tilde (~) to search for the character itself.

Fixing it step by step

  1. Click the failing formula and open Evaluate Formula to see the actual lookup value and range.
  2. Check the lookup value for spaces with LEN and TRIM. Clean it if needed.
  3. Check the data type on both sides — number versus text. Convert the mismatched side.
  4. Confirm the lookup column is the first column of the range, and that the range is absolute ($ signs).
  5. Confirm the last argument is FALSE for exact match.
  6. If duplicates exist in the first column, remember VLOOKUP returns only the first match — sort or deduplicate if you need a specific one.
  7. Wrap the formula in IFERROR if you want a friendly blank or message instead of #N/A: =IFERROR(VLOOKUP(...),"Not found").

If that did not work

If Evaluate Formula shows the value and the range look identical but you still get #N/A, suspect invisible characters — non-breaking spaces (CHAR(160)) survive TRIM. Use =SUBSTITUTE(A2,CHAR(160)," ") then TRIM. Also check for merged cells, which can make a range behave unexpectedly, and confirm the workbook isn't in manual calculation mode (Formulas > Calculation Options > Automatic), which leaves stale results on screen.

If the data lives in another workbook that is closed, VLOOKUP can still work but may return #REF! or stale values; opening the source workbook usually resolves it. If the source is a CSV import, re-check the import settings — leading zeros and long numbers are frequently mangled on import.

VLOOKUP versus XLOOKUP and INDEX/MATCH

XLOOKUP, available in Microsoft 365 and Excel 2021 and later, removes three of VLOOKUP's structural limits: it can look left as well as right, it defaults to exact match, and it returns a clean #N/A only when nothing matches rather than silently returning the wrong row. INDEX/MATCH does the same job in older versions and is the standard workaround when the lookup column isn't first. If you are maintaining a spreadsheet that others will open in older Excel, VLOOKUP remains the most portable choice.

Frequently Asked Questions

Why does VLOOKUP return #N/A when I can see the value in the column?

Because "seeing" it isn't the same as it being equal. A trailing space, a number stored as text, or a non-breaking space will make two visually identical cells unequal. Compare them with =A2=B2 in a blank cell — FALSE confirms a hidden difference.

Why does VLOOKUP return the wrong value instead of an error?

Almost always because the last argument is TRUE or omitted, so Excel is doing an approximate match against unsorted data. Set it to FALSE.

Can VLOOKUP look to the left?

No. It only returns columns to the right of the lookup column. Use INDEX/MATCH or XLOOKUP if you need to go left.

Why does my VLOOKUP work for some rows and fail for others?

Mixed data types in the lookup column are the usual cause — some entries stored as numbers, others as text. A relative range that shifts as you drag is the other common culprit.

Does VLOOKUP work with partial text matches?

Yes, with exact match (FALSE) and wildcards: * for any number of characters, ? for one. It does not do fuzzy matching of misspellings.

What is the fastest way to find why a VLOOKUP fails?

Evaluate Formula, then LEN and TRIM checks on both the lookup value and the matching cell. Those two steps diagnose the large majority of cases.