VLOOKUP Between Workbooks: How to Link Data

Formulas & functions · Updated November 23, 2026

Yes, you can use VLOOKUP between two separate Excel workbooks. The formula works exactly as it does within a single sheet, except the table_array includes the workbook and sheet name in square brackets, like =VLOOKUP(A2,'[Sales.xlsx]Sheet1'!$A$2:$B$100,2,FALSE). This lets you pull matching data from another file without copying it into your current one.

Why Link Workbooks Instead of Copying Data?

Linking workbooks with VLOOKUP keeps your analysis dynamic. When the source file updates, your formula refreshes to show the new values, provided both files are open or you choose to update links when opening. Copy-pasting creates a static snapshot that goes stale. For example, if you have a monthly sales report in one workbook and a customer lookup table in another, a cross-workbook VLOOKUP means you never re-paste the customer names or addresses when the source changes.

This is common in business settings where data lives in separate files—one for inventory, one for pricing, one for employee records. Rather than merging everything into one giant sheet, you reference only the columns you need. The trade-off is that the source file must be accessible, and the link breaks if the file is moved or renamed.

How the Formula Syntax Works Across Workbooks

Standard VLOOKUP syntax is =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). When the table_array is in another workbook, you add the workbook name in square brackets, then the sheet name, then an exclamation mark:

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

Here, A2 is the lookup value in the current sheet. The table_array starts at cell A2 on Sheet1 of CustomerData.xlsx and extends to B500. Column 2 holds the value to return, and FALSE forces an exact match.

You can also use a defined name instead of a range reference. If you name the range CustomerTable in the source workbook, the formula becomes =VLOOKUP(A2,CustomerTable,2,FALSE)—no brackets needed. Defined names make formulas easier to read and less prone to breaking if you move the range.

Step-by-Step: Create the Cross-Workbook VLOOKUP

  1. Open both workbooks in Excel. The source workbook is the one with the lookup table.
  2. In the destination workbook, click the cell where you want the result.
  3. Type =VLOOKUP( and then click the cell with the lookup value (e.g., A2).
  4. Type a comma, then switch to the source workbook and select the range that contains the lookup column and the return column. Excel automatically inserts the bracketed path.
  5. Type a comma, enter the column number of the return value, then a comma and FALSE for exact match.
  6. Press Enter. If both files are open, the result appears immediately.

If you close the source file, Excel keeps the full path in the formula. On reopening the destination file, you may see a prompt asking whether to update links. Click “Update” to refresh values, or “Don’t Update” to keep the last cached values.

Common Problems and How to Fix Them

  • #N/A error: The lookup value isn’t found in the first column of the table_array. Check for extra spaces, text vs. number formatting, or that the range includes the correct rows.
  • #REF! error: The column index number is larger than the number of columns in the table_array, or the source range was deleted.
  • #VALUE! error: The lookup value or table_array is invalid, often due to a missing comma or a syntax error.
  • “This workbook contains links to other data sources” prompt: This is normal. To avoid it, you can break links via Data > Edit Links, but that converts the formulas to static values.
  • File moved or renamed: The formula breaks because the path no longer exists. Update the path manually or use a defined name that points to a stable location.

Another frequent issue is that the source file is closed, and Excel shows the last cached value. To force a refresh, open both files and press Ctrl+Alt+F9 (Windows) or Cmd+Option+F9 (Mac) to recalculate all formulas.

Alternatives to VLOOKUP for Cross-Workbook Lookups

VLOOKUP has limitations: it can only look to the right of the lookup column, and it returns only the first match. For more flexibility, consider:

  • INDEX/MATCH: =INDEX(ReturnRange,MATCH(lookup_value,LookupRange,0)). This works in any Excel version and allows lookup columns to be anywhere, including to the left.
  • XLOOKUP (Excel 2021 or Microsoft 365): =XLOOKUP(lookup_value,lookup_array,return_array). Simpler syntax, no column index, and it handles not-found values with an optional fourth argument.
  • Power Query: Use Data > Get Data > From File > From Workbook to import and merge data. This is more robust for large datasets and doesn’t require keeping both files open.

For example, with XLOOKUP, the cross-workbook formula is =XLOOKUP(A2,'[Sales.xlsx]Sheet1'!$A$2:$A$100,'[Sales.xlsx]Sheet1'!$B$2:$B$100). It’s easier to read and doesn’t break if you insert columns in the source.

Security and Link Management

When you open a workbook with external links, Excel may warn you about updating links. This is a security measure because the source file could contain macros or malicious data. Always ensure the source workbook comes from a trusted source. To manage links, go to Data > Edit Links. From there you can update values, change source, or break links. Breaking links replaces the VLOOKUP formulas with their current values, which is useful if you want to share the file without external dependencies.

If you plan to share the destination workbook with others, consider whether they will have access to the source file. If not, break the links or embed the data. Also note that if the source file is stored on a network drive, the path may need to be a UNC path (e.g., \\server\folder\file.xlsx) rather than a local drive letter.

Frequently Asked Questions

Can VLOOKUP work if the source workbook is closed?

Yes, but Excel will use the last cached values. The formula still works, but it won’t update until you open the source file or manually refresh. To force an update, open both files and press Ctrl+Alt+F9 (Windows) or Cmd+Option+F9 (Mac).

Why does my VLOOKUP return #N/A even though the value exists?

Most often this is due to a mismatch in data types—text vs. number—or extra spaces. Use the TRIM function to clean data, or ensure both columns are formatted the same. Also check that the lookup column is the first column in the table_array.

How do I reference a workbook with a space in its name?

Enclose the workbook and sheet name in single quotes, like ='[My Data.xlsx]Sheet1'!$A$2:$B$100. Excel adds these automatically when you select the range.

Is there a way to avoid the “Update Links” prompt every time?

You can disable the prompt by going to File > Options > Advanced, scrolling to the General section, and unchecking “Ask to update automatic links.” Alternatively, break the links if you don’t need live updates.

Can I use VLOOKUP between workbooks in Google Sheets?

Yes, but the syntax is different. Use =IMPORTRANGE("spreadsheet_url", "Sheet1!A2:B100") to bring data in, then wrap it with VLOOKUP, or use =VLOOKUP(lookup, IMPORTRANGE(...), col, FALSE). You must grant access to the source sheet the first time.

What happens if I move the source workbook after creating the link?

The formula will break and show #REF! because the path no longer points to the file. You can edit the formula to update the path, or use Data > Edit Links > Change Source to select the new location.

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.