VLOOKUP From Another Spreadsheet: How-To Guide
In this article
To VLOOKUP from another spreadsheet, open both workbooks, then write a formula in the destination sheet that points to the source workbook and sheet, like . The key is the external reference: the workbook name in square brackets, the sheet name, an exclamation mark, and a fixed (absolute) range. If the source file is closed, Excel still resolves the path as long as the file stays in the same folder; if it moves, the formula breaks. The steps below walk through the desktop version of Excel and Google Sheets, since the exact clicks differ slightly by version, device and region.
What You'll Need
- Both spreadsheets saved with clear file names, ideally in the same folder.
- A unique lookup value in the first column of the source range (an ID, SKU, email or similar).
- The source sheet open at least once so you can see the exact sheet name and range.
- Desktop Excel or Google Sheets for the easiest experience; the mobile apps have limited formula editing.
Step-by-Step
- Open both workbooks. In Excel, open the destination file (where the formula will live) and the source file (where the data lives). In Google Sheets, open both spreadsheets in separate browser tabs.
- Identify the lookup column and return column. In the source sheet, confirm that the value you will search for is in the leftmost column of the range you plan to use. VLOOKUP only searches to the right. If your return column is to the left, use INDEX/MATCH or XLOOKUP instead.
- Click the destination cell. This is where the result should appear.
- Start the formula. Type
=VLOOKUP(and then click the cell containing the lookup value in the destination sheet, for example A2. Type a comma. - Switch to the source workbook and select the range. With the formula still open, click the source workbook's tab, then drag over the range that includes the lookup column and the return column, for example A2:C100. Excel inserts the external reference automatically. Type a comma.
- Enter the column index number. Count from the first column of the selected range. If the return value is the third column in the range, type 3. Type a comma.
- Enter FALSE for an exact match. Type FALSE (or 0) and close the parenthesis. The finished formula looks like .
- Press Enter and check the result. If you see a value, the link works. If you see #N/A, the lookup value is not found; if you see #REF!, the source file path or sheet name is wrong.
- Lock the range with absolute references. Select the range portion in the formula bar and press F4 (Windows) or Cmd+T (Mac) so it reads $A$2:$C$100. This lets you copy the formula down without the range shifting.
- Copy the formula down. Drag the fill handle from the corner of the cell to apply the formula to the rest of the column.
- For Google Sheets, use IMPORTRANGE first. In the destination sheet, type
=IMPORTRANGE("URL","Sheet1!A2:C100")where URL is the source spreadsheet's address, then allow access when prompted. Once the data is imported into a tab, run a normal VLOOKUP against that tab. Direct cross-file VLOOKUP is not supported in Google Sheets without IMPORTRANGE.
Common Mistakes
- Forgetting FALSE. Omitting the fourth argument makes VLOOKUP approximate-match, which returns wrong values on unsorted data.
- Relative ranges. Without dollar signs, copying the formula shifts the source range and returns #N/A or wrong rows.
- Lookup column not first. VLOOKUP cannot look left. Reorder the source range or switch to INDEX/MATCH.
- Mismatched data types. Numbers stored as text will not match real numbers. Check with ISNUMBER or convert the column.
- Renaming or moving the source file. The external reference stores the path; moving the file breaks every formula that points to it.
- Spaces in sheet names. Sheet names with spaces need single quotes around them, as in
'Sales Data'!A2:C100.
Tips
- Keep both files in the same folder so the reference stays short and portable.
- Use a named range in the source workbook for readability, then reference the name in the formula.
- Wrap the formula in IFERROR to show a blank or custom message instead of #N/A:
=IFERROR(VLOOKUP(...),"Not found"). - For large datasets, XLOOKUP (Excel) or INDEX/MATCH is faster and can look left.
- If you only need a snapshot, copy the source range and paste as values to remove the external link entirely.
Troubleshooting
If the formula returns #REF!, the source workbook has been moved, renamed or deleted. Use Data > Edit Links (Excel) to update the path, or reopen the source file and re-select the range. If you see #N/A, check for leading or trailing spaces with TRIM, confirm the lookup value exists, and verify that both columns use the same data type. If the formula returns a value from the wrong row, your range is likely relative or the column index is off by one. If Excel prompts to update links every time you open the file, the source is closed or on a network path that is unavailable; either open the source first or break the link by pasting values. In Google Sheets, if IMPORTRANGE returns #REF!, you have not yet granted access; click the cell and allow access when prompted. If the imported data is stale, check that the source sheet is still shared with the same account.
Frequently Asked Questions
Can VLOOKUP work when the source workbook is closed?
Yes, in desktop Excel, as long as the file stays in the same location. Excel stores the full path and reads the saved values. If the file moves, the formula returns #REF! until you update the link.
Why does my VLOOKUP return #N/A even though the value exists?
Usually a data type mismatch (text vs number) or hidden spaces. Use TRIM and check with ISNUMBER. Also confirm the lookup column is the leftmost column in your range.
Can I VLOOKUP from a Google Sheets file into Excel?
Not directly. Export or download the Google Sheet as .xlsx, then reference the downloaded file. Live cross-platform links are not supported.
Does VLOOKUP work in Google Sheets across files?
Not directly. Use IMPORTRANGE to pull the source data into a tab, then run VLOOKUP against that tab.
What is the difference between VLOOKUP and XLOOKUP here?
XLOOKUP can search left or right and does not need a column index, which makes external references simpler. It is available in newer Excel versions; older versions need VLOOKUP or INDEX/MATCH.
How do I stop the external link prompt?
Open the source workbook before the destination, or break the link by copying the results and pasting as values. The prompt appears because Excel cannot verify the source file.