VLOOKUP Two Workbooks: Step-by-Step Guide

Formulas & functions · Updated November 23, 2026

Yes, you can use VLOOKUP to pull data from another workbook by including the workbook name and sheet name in the lookup range, like =VLOOKUP(A2,'[Sales.xlsx]Sheet1'!$A$2:$B$100,2,FALSE). This works in Excel for Microsoft 365, Excel 2021, and earlier versions, provided both files are open or the full file path is used.

How VLOOKUP Across Workbooks Works

VLOOKUP normally looks up a value in a table range. When that table lives in a different workbook, Excel needs a reference that includes the file name in square brackets, the sheet name in single quotes, and the cell range. The syntax is:

=VLOOKUP(lookup_value, '[WorkbookName.xlsx]SheetName'!Range, col_index, FALSE)

For example, if you have a customer ID in A2 of your current workbook and want the matching order total from Sheet1 in Orders.xlsx where IDs are in column A and totals in column B, you would write:

=VLOOKUP(A2,'[Orders.xlsx]Sheet1'!$A$2:$B$500,2,FALSE)

The single quotes are required because the workbook name contains a period (the file extension). If your file name has no spaces or special characters, you can omit the quotes, but it’s safer to always include them.

Two Ways to Reference Another Workbook

There are two common methods: linking to an open workbook or using a full file path. The method you choose affects whether the formula updates when the source file moves.

  • Open both workbooks: When both files are open, you can click on the cell range in the other workbook while typing the formula. Excel inserts the reference automatically, e.g., ='[Orders.xlsx]Sheet1'!$A$2:$B$500. This creates a dynamic link that updates if the source file changes, as long as the file stays in the same location.
  • Use a full file path: If the source workbook is closed, you must include the entire path in single quotes, like ='C:\Users\Name\Documents\[Orders.xlsx]Sheet1'!$A$2:$B$500. This works even when the source is closed, but if the file moves, the formula breaks.

For most users, opening both files and clicking the range is the easiest and least error-prone method.

Step-by-Step: VLOOKUP from Another Workbook

Follow these steps in Excel for Microsoft 365 on Windows (Mac steps differ slightly, noted below):

  1. Open both the workbook where you want the result (destination) and the workbook containing the lookup table (source).
  2. In the destination workbook, click the cell where you want the VLOOKUP result.
  3. Type =VLOOKUP( and then click the cell in the destination that contains the lookup value (e.g., A2).
  4. Type a comma, then switch to the source workbook and select the range that includes the lookup column and the result column. Excel will insert the reference with the file name and sheet name.
  5. Type a comma, then enter the column number (1 for the first column in the range, 2 for the second, etc.).
  6. Type a comma, then enter FALSE for an exact match (recommended) or TRUE for an approximate match.
  7. Close the parenthesis and press Enter. Excel returns the matching value.

On Mac, the steps are identical, but you may need to use the Command key instead of Ctrl for shortcuts. Excel for the web does not support VLOOKUP across separate workbooks; you would need to copy the data into one workbook or use Power Query.

Common Problems and Fixes

Several issues often trip users up when using VLOOKUP across workbooks:

  • #REF! error: This happens when the source workbook is closed and the formula references a file that has moved or been renamed. Re-link by reopening the source and re-selecting the range.
  • #N/A error: The lookup value isn’t found in the first column of the range. Check for extra spaces, number stored as text, or mismatched data types.
  • #VALUE! error: The column index number is greater than the number of columns in the range, or the range is invalid.
  • Formula shows the full path: If you see a long path like ='C:\...\[Orders.xlsx]Sheet1'!, that’s normal when the source is closed. It updates to a short name when opened.
  • File not updating: If the source file changes but the destination doesn’t update, press F9 to recalculate, or ensure calculation is set to Automatic (Formulas > Calculation Options).

A common misconception is that VLOOKUP requires both files to be open. That’s false—if you use a full path, it works with closed files, but the formula becomes brittle if the file moves.

VLOOKUP vs. XLOOKUP for External References

XLOOKUP, available in Excel 2021 and Microsoft 365, handles external references more gracefully. The syntax is similar: =XLOOKUP(lookup_value, lookup_array, return_array). For example, =XLOOKUP(A2,'[Orders.xlsx]Sheet1'!$A$2:$A$500,'[Orders.xlsx]Sheet1'!$B$2:$B$500) returns the same result as VLOOKUP but without needing a column index number. XLOOKUP also defaults to exact match and handles missing values better, returning a blank or a custom message. If you have Microsoft 365, XLOOKUP is generally preferred because it’s simpler and less error-prone. However, VLOOKUP still works fine for backward compatibility.

Alternatives: Power Query and Manual Copy

If you frequently combine data from multiple workbooks, consider these alternatives:

  • Power Query (Get & Transform): Go to Data > Get Data > From File > From Workbook, select the source file, and load the data into a table. You can then use VLOOKUP or merge queries. This is more robust because it doesn’t rely on live links and handles large datasets well.
  • Copy and paste: For one-time lookups, simply copy the lookup table into the destination workbook and use a normal VLOOKUP. This avoids external references altogether.
  • INDIRECT function: You can use INDIRECT to build a reference from text, but it’s volatile and can cause performance issues, so it’s not recommended for large workbooks.

For most users, opening both files and using VLOOKUP directly is the quickest solution. For recurring tasks, Power Query is worth learning.

Costs and Safety Considerations

There’s no extra cost for using VLOOKUP across workbooks—it’s a standard Excel feature. However, there are safety concerns:

  • Broken links: If you send a workbook with external references to someone else, they’ll see a warning about links. The recipient must have access to the source file or the links won’t work.
  • File corruption: External references can sometimes cause issues if files are saved in incompatible formats. Always save as .xlsx.
  • Security warnings: Excel may prompt you to enable content or update links when opening a file with external references. This is normal, but be cautious when opening files from untrusted sources.
  • Performance: If the source file is huge, VLOOKUP across workbooks can slow down calculations. Consider using Power Query for large data.

Always keep a backup of your workbooks before making significant changes, and test the formula with a few known values to ensure accuracy.

Frequently Asked Questions

Can VLOOKUP work with a closed workbook? Yes, if you include the full file path in the reference. For example, =VLOOKUP(A2,'C:\Users\Name\[Orders.xlsx]Sheet1'!$A$2:$B$500,2,FALSE) works even when the source is closed. However, if the file moves, the formula breaks.

Why does my VLOOKUP return #REF! when I close the source workbook? This usually happens if the reference was created while the source was open and then the file was moved or renamed. Re-open the source and re-select the range to fix it.

How do I update the VLOOKUP if the source file changes? If both files are open, changes reflect automatically. If the source is closed, press F9 to recalculate, or set calculation to Automatic. If the source file is replaced, you may need to update the file path.

Can I use VLOOKUP across different Excel versions? Yes, VLOOKUP works in Excel 2010 and later. The external reference syntax is the same. However, XLOOKUP is only available in Excel 2021 and Microsoft 365.

What if my workbook name has spaces or special characters? You must enclose the entire reference in single quotes, like ='[My Orders.xlsx]Sheet1'!$A$2:$B$500. Excel does this automatically when you click the range.

Is there a limit to the number of external references? No hard limit, but too many can slow down Excel. If you have dozens, consider consolidating data.

Related

Try it: the Formula Explainer: paste any formula and see each function and reference in plain English.

More in Formulas & functions

Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources

Spotted an error in this guide? Let us know.