VLOOKUP Across Different Spreadsheets: Step-by-Step Guide
In this article
Using VLOOKUP across different spreadsheets lets you pull data from one file into another without manually copying and pasting. This saves time, reduces errors, and keeps your data synchronized. To make this work, both files must be open at the same time, and you need to know the exact file name, sheet name, and column structure of the source data. This guide works for Microsoft Excel on Windows and macOS.
What You'll Need
- Two Excel files: one with the lookup data (source), and one where you want to display results (destination)
- Both files must be saved on your computer (not online-only like OneDrive or Google Sheets)
- Identical data structure in the source file: the lookup column must be the first column in the range you reference
- Excel installed (version 2010 or later recommended)
Step-by-Step
- Save both Excel files to the same folder on your computer. For example, create a folder named "Sales Data" and place both files there: "MasterList.xlsx" and "Report.xlsx".
- Open both files in Excel. Keep both windows visible — you can arrange them side by side using Windows > Arrange All > Tiled (on Windows) or by dragging windows manually (on macOS).
- In the destination file (Report.xlsx), click the cell where you want the VLOOKUP result to appear. For example, click cell B2 if you're matching names in column A.
- Type the VLOOKUP formula: =VLOOKUP(lookup_value, '[filename.xlsx]sheetname'!range, column_index, FALSE). Replace each part:
- Replace lookup_value with the cell reference containing the value you’re searching for. For example, if you’re looking up a name in A2, use A2.
- Replace [filename.xlsx] with the exact name of the source file, including the .xlsx extension. Use square brackets around it.
- Replace sheetname with the name of the worksheet in the source file that contains your data. For example, if the data is on a sheet named "Inventory", write 'Inventory'!
- Replace range with the exact column range in the source file that includes your lookup column and the data you want to return. For example, if names are in column A and prices in column B, and your data runs from row 2 to row 100, use A2:B100.
- Keep column_index as the number of columns from the left of your range that contains the data you want. If your range is A2:B100 and you want prices (in column B), use 2.
- Always use FALSE at the end to force an exact match. Using TRUE can return incorrect results.
- Example complete formula: =VLOOKUP(A2,'[MasterList.xlsx]Inventory'!A2:B100,2,FALSE)
- Press Enter. Excel will pull the matching value from the source file. If the source file is closed, Excel will show the full file path in the formula.
- Drag the fill handle (small square at the bottom-right of the selected cell) down to copy the formula to other rows. This will automatically update the lookup value for each row.
- Test the formula by changing a value in the source file. The destination file should update automatically if both files are open.
Common Mistakes
- Forgetting the square brackets around the filename — this causes a #REF! error.
- Typing the sheet name incorrectly, including spaces or special characters without using single quotes.
- Using a range that doesn’t start with the lookup column — VLOOKUP always searches the first column of the range.
- Using TRUE instead of FALSE, which causes approximate matching and returns wrong values if data isn’t sorted.
- Referencing a closed file without saving both files in the same folder — Excel can’t resolve the link and shows a #REF! error.
- Missing the single quotes around sheet names that contain spaces, like '[MasterList.xlsx]Sales Data'!A2:B100 — quotes are required.
Tips
- Always name your sheets clearly and avoid spaces or special characters in sheet names to simplify formulas.
- Use named ranges in the source file (Formulas > Define Name) to make formulas easier to read and maintain.
- Copy and paste the formula as text first into Notepad to check for typos before pasting into Excel.
- Lock your range references with $ signs (like $A$2:$B$100) if you plan to copy the formula across multiple columns.
- Use the Formula Auditing tool (Formulas > Trace Precedents) to see which cells your VLOOKUP is pulling from.
- For frequent cross-file lookups, consider consolidating data into one file with multiple sheets instead of splitting across files.
- Always save both files before closing Excel — broken links occur if the source file is moved or renamed after the formula is created.
Troubleshooting
- If you see #REF!, check that the source file hasn’t been moved, renamed, or deleted. Relocate it to the original folder and reopen both files.
- If you see #N/A, the lookup value doesn’t exist in the source column. Check for extra spaces, different capitalization, or mismatched data types (e.g., text vs. number). Use TRIM() or VALUE() to clean data.
- If you see #NAME?, Excel doesn’t recognize the formula. Confirm you typed VLOOKUP correctly, and that you’re not using a non-English version of Excel (e.g., VÉRIFIER in French).
- If the formula works only when both files are open but breaks when closed, ensure both files are saved in the same folder and the filename in the formula matches exactly, including capitalization.
- If the result is a date or number formatted wrong, right-click the cell > Format Cells > choose the correct format (e.g., Number, Currency).
- If Excel asks if you want to update links when opening the destination file, click Update to reconnect to the source file.