VLOOKUP between two sheets usually fails because the lookup value and the first column of the lookup range are not the same data type, or because the sheet name in the formula is not wrapped in single quotes. Excel does not warn you about either problem: it simply returns #N/A. Fix those two things first, then check for stray spaces, a wrong column index, or a range that is not locked.
What You'll Need
- Excel or Google Sheets with both the source sheet (where the formula goes) and the lookup sheet (where the data lives) in the same workbook or file.
- The exact name of the lookup sheet as it appears on the tab.
- A lookup value that exists in the first column of the lookup range.
- Optional: a helper column if you need to clean text or numbers before matching.
Step-by-Step
- Write the formula with the sheet name in single quotes. The correct pattern is
=VLOOKUP(A2,'Sheet2'!A:B,2,FALSE). If the sheet name contains a space or a special character, the single quotes are mandatory. Without them Excel may read the name as a named range and return #NAME? or #N/A. - Confirm the lookup value is in the first column of the range. VLOOKUP only searches the leftmost column of the range you give it. If your ID is in column B of the lookup sheet but your range starts at column A, the formula will not find it. Either move the range to start at the ID column or use INDEX and MATCH instead.
- Match the data types. A number stored as text will not match a real number. Check by selecting the lookup value and the first cell of the lookup range and comparing their alignment: text is left-aligned by default, numbers are right-aligned. Convert one side to match the other. In Excel, use Text to Columns or multiply by 1 to convert text numbers to real numbers. In Google Sheets, use
VALUE()or format the column as a number. - Remove hidden spaces and non-printing characters. A trailing space in either sheet causes #N/A. Use
TRIM()on both sides, or run Find and Replace with a space in the Find box and nothing in the Replace box. For non-breaking spaces, useSUBSTITUTE(A2,CHAR(160),""). - Set the fourth argument to FALSE or 0. If you leave it blank or set it to TRUE, VLOOKUP uses an approximate match and can return the wrong row or #N/A on unsorted data. For exact matching, always use FALSE.
- Count the column index correctly. The third argument is the column number counted from the first column of your range, not from column A of the sheet. If your range is
'Sheet2'!B:Dand you want column D, the index is 3, not 4. - Lock the range with absolute references. Use
$A$2:$B$100so the range does not shift when you copy the formula down. A relative range is the most common reason a formula works in the first row and fails below it. - Check the sheet name for typos and case. Sheet names are not case-sensitive, but a misspelled name returns #REF!. Click the lookup sheet tab while editing the formula to insert the correct reference automatically.
- Test with a known value. Copy a value directly from the lookup sheet's first column into the formula cell. If the formula works with the copied value but not the original, the problem is a data type or hidden character, not the formula structure.
- Wrap the formula in IFERROR for a clean result. Use
=IFERROR(VLOOKUP(...),"Not found")so genuine misses are visible without breaking totals or charts.
Common Mistakes
- Forgetting the single quotes around a sheet name with a space, such as
'Sales Data'!A:B. - Using TRUE or leaving the fourth argument empty, which triggers an approximate match.
- Pointing the range at the wrong sheet, especially after renaming a tab. Renaming a sheet does not update formulas automatically in every case.
- Mismatched number formats: one sheet stores IDs as text, the other as numbers.
- Counting the column index from column A instead of from the start of the range.
- Not locking the range before filling the formula down.
- Looking up a value that only exists in the lookup sheet with different capitalization or extra spaces.
Tips
- Use a named range for the lookup table. It makes formulas easier to read and prevents range drift.
- Keep the lookup column as the first column of the range. If you cannot, switch to INDEX and MATCH, which can look left.
- Format both key columns identically before you build the formula. It is faster than fixing errors later.
- In Google Sheets, the same rules apply. The sheet reference uses the same single-quote syntax, and the fourth argument still needs to be FALSE for an exact match.
- If you are matching on more than one column, add a helper column that joins the values, then VLOOKUP against that helper column.
Troubleshooting
If the formula returns #N/A, work through the checks in this order: data type, hidden spaces, range start column, and exact match setting. If it returns #REF!, the sheet name or range is wrong. If it returns #VALUE!, the column index is not a number. If it returns the wrong row, the fourth argument is probably TRUE or the data is not sorted.
If the formula works on one computer but not another, check whether the workbook was saved in a different format or whether the lookup sheet was moved to another file. VLOOKUP cannot read a closed workbook reliably in every version, so open both files or bring the data into the same workbook.
If nothing works, rebuild the formula from scratch by clicking the lookup sheet tab while the cursor is in the range argument. That guarantees the sheet reference is correct. Then test with a single known value before filling the formula down.
Frequently Asked Questions
Why does VLOOKUP return #N/A when the value clearly exists?
Almost always a data type mismatch or a hidden space. Compare the alignment of both cells and use TRIM on each side.
Can VLOOKUP look to the left of the lookup column?
No. VLOOKUP only searches the first column of the range and returns columns to its right. Use INDEX and MATCH if you need to look left.
Do sheet names with spaces need quotes in VLOOKUP?
Yes. Wrap the sheet name in single quotes, for example 'Sheet 2'!A:B.
Why does the formula work in one row but not the next?
The lookup range is probably relative. Lock it with dollar signs, such as $A$2:$B$100, before filling down.
Does VLOOKUP work between two different workbooks?
It can, but both files usually need to be open. If the source workbook is closed, the formula may return #REF! or #N/A. Bringing the data into one workbook is more reliable.
What is the difference between FALSE and TRUE in VLOOKUP?
FALSE means exact match and is what you want for IDs and names. TRUE means approximate match and requires sorted data, so it often returns the wrong row.