VLOOKUP Returning Wrong Value? Fix It Fast

Errors & fixes · Updated November 23, 2026

If your VLOOKUP is returning the wrong value, the cause is almost always one of four things: the lookup column is not the leftmost column in the table, the range is not locked with absolute references, the lookup value has extra spaces or is stored as text, or the table is not sorted when using approximate match. The fix is usually a combination of correcting the range, using FALSE for exact match, and cleaning the data.

How VLOOKUP Actually Works

VLOOKUP searches for a value in the first column of a table and returns a value from a column to the right. Its syntax is =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). The fourth argument, range_lookup, is the sneaky one: if you omit it or type TRUE, Excel assumes your first column is sorted and performs an approximate match. If the first column isn’t sorted, you get a wrong or unexpected result. If you type FALSE or 0, Excel looks for an exact match.

Example: with names in A2:A20 and sales in B2:B20, the formula =VLOOKUP("Smith", A2:B20, 2, FALSE) returns the sales figure for Smith. If you wrote =VLOOKUP("Smith", A2:B20, 2) without the FALSE, Excel might return a nearby row’s value if the list isn’t sorted alphabetically.

Common Reason #1: The Lookup Column Isn’t Leftmost

VLOOKUP can only search in the first column of the range you give it. If your data has the ID in column B and the name in column A, VLOOKUP cannot look up by name and return the ID—it will either return a wrong value or an error. The workaround is to rearrange columns, or better, use INDEX and MATCH which allow any column to be the lookup column. For example, =INDEX(A2:A20, MATCH("Smith", B2:B20, 0)) returns the ID from column A when “Smith” is found in column B.

Common Reason #2: Missing Absolute References

When you copy a VLOOKUP formula down a column, the table range moves unless you lock it with dollar signs. If you write =VLOOKUP(A2, B2:C20, 2, FALSE) and drag it down, the range becomes B3:C21, then B4:C22, and so on—eventually excluding the rows you need. Fix it by pressing F4 (on Windows) or Cmd+T (on Mac) to make the range absolute: =VLOOKUP(A2, $B$2:$C$20, 2, FALSE). This is the most common reason a VLOOKUP works on the first row but fails on rows below.

Common Reason #3: Text vs. Number Mismatch

If your lookup value is a number stored as text (e.g., “1234” with an apostrophe) and the table has real numbers, VLOOKUP won’t match them. Symptoms: the formula returns #N/A even though the value looks identical. To fix, convert the lookup value to a number with =VLOOKUP(VALUE(A2), $B$2:$C$20, 2, FALSE) or use TEXT to convert the table column. Alternatively, use =VLOOKUP(A2&"", $B$2:$C$20, 2, FALSE) to force text comparison. Also check for trailing spaces: =VLOOKUP(TRIM(A2), $B$2:$C$20, 2, FALSE) removes extra spaces from the lookup value, and you may need to clean the table column with TRIM in a helper column.

Common Reason #4: Approximate Match on Unsorted Data

When range_lookup is TRUE or omitted, VLOOKUP assumes the first column is sorted ascending. If it isn’t, the result is unpredictable—it may return the closest value below, or just a random row. This is especially common when you copy a formula that originally had TRUE and forget to change it. The fix is to always use FALSE for exact match unless you truly need an approximate match (like finding a tax bracket from a sorted rate table). If you need an approximate match, sort the first column ascending first.

How to Choose Between VLOOKUP, INDEX/MATCH, and XLOOKUP

VLOOKUP is easy but has limits. INDEX/MATCH is more flexible and doesn’t require the lookup column to be leftmost. XLOOKUP (available in Excel 2021 and Microsoft 365) is the modern replacement: it defaults to exact match, can look to the left, and returns an array if needed. For example, =XLOOKUP(A2, $B$2:$B$20, $C$2:$C$20) returns the value from column C where column B matches A2. If you’re starting a new spreadsheet, use XLOOKUP. If you’re maintaining an old one, VLOOKUP is fine as long as you follow the rules.

Step-by-Step Debugging Checklist

  • Check the fourth argument: is it FALSE? If not, add it.
  • Check the range: press F4 to lock it, and verify the first column of the range contains your lookup values.
  • Check for spaces: use =LEN(A2) to see if the lookup value has extra characters, and compare with =LEN(VLOOKUP(...)).
  • Check data types: use =ISTEXT(A2) and =ISNUMBER(A2) to see if the lookup value is text or number, and do the same for the table column.
  • Check for duplicate lookup values: if the first column has duplicates, VLOOKUP returns the first match. Use COUNTIF to count duplicates.
  • Check for hidden characters: use =CLEAN(A2) to remove non-printable characters.

Frequently Asked Questions

Why does VLOOKUP return #N/A even though the value exists?

The most common reasons are a text/number mismatch, trailing spaces, or the lookup value being in a column that isn’t the first column of your table. Use TRIM and VALUE to clean both the lookup value and the table column, and verify the range starts at the correct column.

Can VLOOKUP return a value from a column to the left?

No. VLOOKUP can only return values from columns to the right of the lookup column. If you need to return a left column, use INDEX/MATCH or XLOOKUP.

Why does VLOOKUP return a wrong value but no error?

This usually happens when you use approximate match (TRUE) on unsorted data. Excel doesn’t error; it just returns the closest match it finds. Switch to FALSE for exact match, or sort the first column ascending if you need approximate matching.

Does VLOOKUP work with wildcards?

Yes, but only in exact match mode. You can use * and ? in the lookup value, like =VLOOKUP("Sm*", $A$2:$B$20, 2, FALSE) to match “Smith” or “Smythe”. This is useful for partial matches.

Why does VLOOKUP return a value from a lower row?

If your range isn’t locked with absolute references and you copy the formula, the range shifts. Also, if there are duplicate lookup values, VLOOKUP returns the first one it finds—which may not be the one you expect. Sort your data or use a helper column to make lookup values unique.

When to Stop Using VLOOKUP Altogether

If you’re constantly fighting these issues, consider switching to XLOOKUP (Microsoft 365/Excel 2021) or INDEX/MATCH (older versions). XLOOKUP’s default exact match, ability to search left, and built-in error handling make it far less error-prone. For example, =XLOOKUP(A2, $B$2:$B$20, $C$2:$C$20, "Not found") returns “Not found” instead of #N/A. The learning curve is minimal, and you’ll avoid the classic VLOOKUP pitfalls entirely.

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.