Google Sheets VLOOKUP Returns the Wrong Value: Exact-Match Fixes

Published by AppFixLab · Published · Updated

Quick answer

If VLOOKUP returns a valid-looking wrong value, check its fourth argument first. An omitted fourth argument behaves like TRUE (approximate matching), which can return a nearby key rather than the exact one. Use FALSE when you need an exact ID, SKU, or name match. Google also documents duplicate keys, unsorted approximate-match data, and dirty inputs as possible causes.

=VLOOKUP(E2,$A$2:$C$100,3,FALSE)

This formula looks for E2 in the first column of A2:C100 and returns column 3 from the first exact match. If there is no exact match, it returns #N/A; that is often safer than a plausible wrong value.

Diagnose the wrong answer

What you seeMost useful check
An adjacent or earlier ID’s resultIs the fourth argument omitted or TRUE?
The wrong result for a repeated IDDoes the first matching row contain the older value?
A value from the wrong fieldIs the column index counted from the beginning of the selected range?
Inconsistent results after copyingHas the lookup table range moved?

Fix 1: Force exact matching

A formula such as =VLOOKUP(E2,A2:C100,3) defaults to approximate matching. If the first column is not sorted ascending, approximate matching can give unexpected answers. For identifiers and labels, prefer:

=VLOOKUP(E2,$A$2:$C$100,3,FALSE)

Do not fix an approximate-match problem merely by sorting the sheet if your business requirement is an exact identifier match. Switching to FALSE expresses the intent more clearly.

Fix 2: Check duplicate lookup keys

VLOOKUP returns the first matching row. If A2:A100 contains the same SKU twice, you may get an older price or name even with FALSE.

=COUNTIF($A$2:$A$100,E2)

A count greater than 1 indicates duplicate keys; inspect which row VLOOKUP will encounter first. Do not delete duplicates blindly when they represent legitimate historical records.

Fix 3: Verify the return-column number

For a range starting at column B, index 1 means B—not A. If the range is B:D, 3 refers to D. A mistaken index can return another column without showing an error.

Fix 4: Stabilize references and clean keys

Use $A$2:$C$100 if you will fill the formula down. Compare text and number formats, and inspect spaces. TRIM can help on ordinary surrounding spaces, but not every nonprinting character. If needed, create a helper column with cleaned keys and ensure duplicates are still handled.

Before you trust the results

Compare a few high-impact rows against the original source data, especially if the output drives billing or reporting. A formula returning a value is not proof that it selected the intended record.

Sources


Editorial note: Examples are illustrative and based on the linked documentation; no firsthand product test is claimed.

Related guides