How to Use VLOOKUP to Return Data from a Linked Workbook
Question details
The user needs to match a value against thousands of rows in an external workbook and return a corresponding value using VLOOKUP, avoiding spill errors.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Pulling data from a separate, linked spreadsheet into a destination spreadsheet.
- Observed behavior
- Requires a correct VLOOKUP formula structure referencing an external file path to successfully return matched values without triggering array spill errors.
Ensure both the destination and source workbooks are saved on your computer, and take note of the exact file name and sheet name of your source workbook.
Use VLOOKUP with External File References
Properly format your source data and apply a VLOOKUP formula that includes the external workbook's name and sheet reference.
When referencing another workbook, VLOOKUP requires the exact file path, the file name enclosed in square brackets, and the sheet name followed by an exclamation mark. Using IFERROR helps handle any unmatched data gracefully.
In the source workbook (e.g., Spreadsheet B.xlsx), ensure the lookup value is in the first column of your dataset (e.g., Column A) and the data you want to return is in a column to the right (e.g., Column B).
Open your destination workbook and click on the cell where you want the returned data to appear (for example, cell B1).
Enter the formula: =IFERROR(VLOOKUP(A1,'[Spreadsheet B.xlsx]Sheet Name'!$A:$B,2,FALSE),""). Replace 'A1' with your lookup cell, and adjust the exact workbook name and sheet name to match your external file.
Press Enter to execute the formula. Click the cell containing the result, grab the fill handle at the bottom-right corner, and drag it down to copy the formula across all necessary rows.

Easily Connect Workbooks Using WPS Spreadsheet
WPS Spreadsheet provides a seamless experience for managing large datasets across multiple workbooks. Its robust formula engine perfectly supports VLOOKUP, XLOOKUP, and cross-file data referencing with simple point-and-click selection.
- 1. Open both workbooks: Launch WPS Spreadsheet and open both your source and destination spreadsheets in adjacent tabs.
- 2. Start the formula: Type =VLOOKUP( in the destination cell, click your lookup value, and type a comma.
- 3. Select the external range: Switch directly to the source spreadsheet tab, highlight the data columns you want to reference, type ,2,FALSE), and press Enter.
- 4. Auto-generate paths: WPS Office will automatically generate the correct cross-workbook reference path, saving you from typing complex brackets and exclamation points.

Frequently Asked Questions
Why is my VLOOKUP to another workbook returning a #REF! error?
A #REF! error usually occurs if the source workbook is closed and the file path in the formula is incorrect, or if the column index number (the '2' in the formula) exceeds the total number of columns in your selected external range.
How do I update the data if the external workbook changes?
If both workbooks are open, the VLOOKUP formula will update automatically. If the source workbook is closed, you may need to go to the 'Data' tab and click 'Edit Links' to refresh the values and fetch the latest data.
How can I fix a spill error when using VLOOKUP?
Spill errors happen if an array formula attempts to output data into cells that already contain text or data. Ensure the cells below your VLOOKUP formula are entirely empty. Alternatively, lock your references properly or avoid selecting entire columns as the lookup value argument.
Can I use XLOOKUP instead of VLOOKUP across different workbooks?
Yes, XLOOKUP works across linked workbooks and does not require the return column to be strictly to the right of the lookup column. It natively handles unmatched data and is often less prone to errors when columns are inserted or deleted in the source file.




