VLOOKUP returns the wrong value in Google Sheets for one of four reasons: the lookup column is not the first column in the range, the fourth argument is missing or TRUE so the formula does an approximate match, the key contains stray spaces or mismatched data types, or duplicate keys exist and VLOOKUP only ever returns the first match. The fastest fix is to use an exact match and confirm the key column sits on the left of your range. Below is a step-by-step process to find and correct the cause, plus the mistakes that keep people stuck.
What You'll Need
- A Google account with access to the sheet (edit permission, not view-only).
- The sheet containing the lookup table and the sheet where you want the result.
- Basic familiarity with cell references and the formula bar.
Step-by-Step
- Read the formula out loud. Click the cell with the wrong result and look at the formula bar. VLOOKUP has four parts: search key, range, column index, and match mode. Write down each part so you can test them one at a time. Menu labels and dialog wording can differ slightly by version, device, or region, but the formula syntax is the same everywhere.
- Check the fourth argument first. If the formula ends after the column number, or ends in TRUE or 1, Google Sheets is doing an approximate match. That returns the nearest value below your key in a sorted column, which is the single most common cause of a wrong result. Add
, FALSEor, 0before the closing bracket so the formula reads=VLOOKUP(A2, Sheet2!A:C, 3, FALSE). Approximate match is only correct for sorted numeric bands such as tax brackets or grade thresholds. - Confirm the key column is the leftmost column of the range. VLOOKUP searches the first column of the range you give it and counts columns to the right from there. If your key is in column B but the range starts at column A, the formula searches column A and returns nonsense. Either move the key column to the left of the data or switch to INDEX and MATCH, which can look left:
=INDEX(Sheet2!A:A, MATCH(A2, Sheet2!B:B, 0)). - Count the column index correctly. The third argument is not the spreadsheet column letter; it is the position within the range. In the range
Sheet2!B:D, column B is 1, C is 2, and D is 3. A formula that returns the neighbouring column is almost always off by one here. - Test the key itself. In an empty cell, type
=A2=Sheet2!A5(replacing the references with your actual key and the matching cell in the lookup table). If it returns FALSE, the two values are not identical even if they look the same. Common culprits are a trailing space, a non-breaking space pasted from a website, a number stored as text, or a date stored as text. Use=LEN(A2)and=LEN(Sheet2!A5)to compare lengths, and=ISTEXT(A2)to check the type. - Clean the key. Wrap the key in TRIM to strip leading and trailing spaces:
=VLOOKUP(TRIM(A2), Sheet2!A:C, 3, FALSE). If one side is text and the other is a number, convert with VALUE or TO_TEXT so both sides match. For pasted data, select the column and use Data > Trim whitespace if that option is available in your version; otherwise a helper column with TRIM is reliable. - Look for duplicates. VLOOKUP stops at the first match in the range. If the lookup table has two rows with the same key, the formula returns the first one, which may not be the row you expect. Sort the table so the correct row comes first, make the keys unique, or use a formula that can return the last match, such as
=LOOKUP(2, 1/(Sheet2!A:A=A2), Sheet2!C:C). - Check for hidden rows and filters. Hidden rows are still searched, so a hidden duplicate can win the match. Clear filters and unhide rows to see the full table before assuming the formula is broken.
- Lock the range if you copy the formula. Dragging a formula down without dollar signs shifts the lookup range and produces wrong values further down the column. Use
Sheet2!$A:$Cso the range stays fixed while the search key moves. - Re-enter the formula cleanly. Delete the cell contents and type the formula from scratch rather than editing a copied one. This removes stray characters and mismatched brackets that are hard to spot in the formula bar.
Common Mistakes
- Leaving out the fourth argument, so VLOOKUP silently does an approximate match.
- Using the spreadsheet column letter instead of the position within the range.
- Pointing the range at the wrong sheet or a range that does not include the column you want.
- Assuming two values are equal when one has a trailing space or is stored as text.
- Forgetting that VLOOKUP returns only the first match when keys are duplicated.
- Copying the formula without absolute references, so the range drifts.
Tips
- Prefer INDEX and MATCH or XLOOKUP for new formulas: they can look left, handle duplicates more predictably, and do not depend on column position.
- Keep lookup keys in a consistent format (all text or all numbers) and clean imported data before matching.
- Use a helper column with TRIM and a consistent case so keys are comparable at a glance.
- Add a check column such as
=IFERROR(VLOOKUP(...), "not found")so a failed match is obvious rather than showing a plausible wrong value. - Name your lookup range (Data > Named ranges) so formulas are easier to read and audit.
Troubleshooting
If the formula still returns the wrong value, work through these checks in order. First, confirm the result is actually wrong: compare the returned row against the key by eye, since a correct match to a duplicated key can look like an error. Second, test the key equality as described in step 5; if it returns FALSE, clean the data rather than the formula. Third, temporarily replace the search key with a hard-coded value you know exists in the table, such as "ABC123", to see whether the formula or the key is at fault. Fourth, check that the range includes the column you are counting to; a range of A:B with a column index of 3 returns an error or the wrong column entirely. Fifth, look for merged cells and hidden rows in the lookup table, which can shift what appears to be the first match. If the sheet uses array formulas or is shared with editors who may have changed it, check the version history (File > Version history) to see whether the range or formula was altered. Finally, if nothing works, rebuild the lookup on a clean sheet with a small sample of rows; if that works, the problem is in the original data, not the formula.
Frequently Asked Questions
Why does VLOOKUP return the value from the row above or below?
That is the signature of an approximate match. The fourth argument is missing or set to TRUE, so Google Sheets returns the nearest value below the key in a sorted column. Add , FALSE to force an exact match.
Why does VLOOKUP return #N/A when the value clearly exists?
The key and the table value are not identical. Check for trailing spaces, numbers stored as text, or different date formats, and use TRIM or VALUE to make both sides match.
Can VLOOKUP return a value from a column to the left of the key?
No. VLOOKUP only searches the first column of the range and returns columns to its right. Use INDEX and MATCH or XLOOKUP to look left.
Why does VLOOKUP give different results on different rows?
Usually the range was not locked with dollar signs and shifted as the formula was copied, or the table contains duplicate keys and each row matches a different first occurrence.
Does VLOOKUP work across different sheets and files?
Across sheets in the same file, yes, using a reference such as Sheet2!A:C. Across separate files, use IMPORTRANGE to bring the data into the workbook first, then run VLOOKUP on the imported range.
What is the difference between FALSE and 0 in VLOOKUP?
Nothing functional. Both force an exact match; FALSE is the more readable choice, and 0 is a common shorthand.