VLOOKUP from Another Workbook: How To

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 range argument, like =VLOOKUP(A2,'[Sales.xlsx]Sheet1'!$A$2:$B$100,2,FALSE). The other workbook must be open in the same Excel instance for the formula to calculate without errors, though Excel will store the full path so it works later when closed.

How VLOOKUP Works Across Workbooks

VLOOKUP searches for a lookup value in the first column of a table and returns a value from a specified column to the right. When the table is in another file, you reference it as an external reference. The syntax is:

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

For example, with the lookup value in A2 of your current sheet, and the other workbook named Sales.xlsx with data in Sheet1 (product IDs in column A, prices in column B), the formula is:

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

This returns the price from column B when the product ID in A2 matches a value in A2:A100. The single quotes around the file and sheet name are required if the file name contains spaces or special characters.

Step-by-Step: Creating the Formula

  1. Open both workbooks in Excel.
  2. In the destination workbook, select the cell where you want the result.
  3. Type =VLOOKUP( and then click the cell containing your lookup value, or type its reference.
  4. Type a comma, then switch to the source workbook and select the range that includes the lookup column and the return column (e.g., A2:B100).
  5. Press Enter. Excel will insert the external reference automatically, including square brackets and sheet name.
  6. Type the column index number (e.g., 2) and FALSE for an exact match, then close the parenthesis.

If you prefer to type it manually, ensure the source workbook is open when you first enter the formula. Excel records the full file path in the formula bar, but displays only the workbook name in the cell.

When the Source Workbook Is Closed

Excel stores the absolute path when you create the formula, so the formula continues to work even after you close the source file. However, if you move or rename the source workbook, the formula breaks and returns #REF! or #VALUE! errors. To fix it, you must update the path manually or re-create the reference with the file open.

If the source workbook is closed when you open the destination file, Excel may show a security warning about external links. You can click Enable Content to allow the formulas to calculate. If you don’t enable, the values may be stale or show as zeros depending on your settings.

Common Errors and How to Fix Them

  • #N/A – The lookup value isn’t found in the first column of the source range. Check for extra spaces, text vs. number formats, or that the range starts on the correct row.
  • #VALUE! – The column index number is greater than the number of columns in the range, or the range is invalid.
  • #REF! – The source workbook or sheet was renamed, moved, or deleted. Update the reference in the formula.
  • #NAME? – Usually means the file name or sheet name is missing quotes. Ensure the reference is in the format '[FileName.xlsx]SheetName'!.
  • Wrong results – If you used TRUE (approximate match) instead of FALSE, Excel may return a close match that isn’t exact. Always use FALSE for exact matches unless you intentionally need a range lookup.

Alternatives to VLOOKUP for External References

If you have Excel 2021 or Microsoft 365, consider XLOOKUP, which is more flexible:

=XLOOKUP(A2,'[Sales.xlsx]Sheet1'!$A$2:$A$100,'[Sales.xlsx]Sheet1'!$B$2:$B$100)

XLOOKUP doesn’t require a column index number and can return values to the left of the lookup column. It also has built-in error handling with the if_not_found argument. For pulling entire tables, you could use Power Query (Get & Transform Data) to import the data into your workbook, which avoids live links altogether. That’s often more stable for large reports.

Performance and File Size Considerations

External references can slow down workbook calculations, especially if the source file is large or you have many VLOOKUP formulas. Each formula recalculates whenever the source workbook changes, and if the source is closed, Excel reads the cached values. To improve performance, consider using Power Query to import data once, or limit the lookup range to the exact rows needed (e.g., A2:B1000 instead of entire columns).

Also, external links can break if you send the workbook to someone else without the source file. If you need to share, either embed the data or use a single workbook.

Frequently Asked Questions

Can I use VLOOKUP from a closed workbook without opening it? Yes, the formula will still work as long as the file path hasn’t changed. Excel stores the full path, so it can retrieve values from the closed file. However, you may see a warning about updating links, and the values are only as current as the last time the source was saved.

Why does my VLOOKUP return #REF! after I close the source workbook? This usually happens if the source file was moved or renamed after you created the formula. The reference includes the original path. You can edit the formula to correct the path, or reopen the source and re-select the range.

How do I update the external reference if the source file is moved? Go to Data > Edit Links, then click Change Source and browse to the new location. This updates all formulas that reference that workbook.

Is VLOOKUP case-sensitive? No, VLOOKUP is not case-sensitive. It treats “apple” and “APPLE” as the same. If you need case-sensitive matching, use XLOOKUP with the match_mode argument set to 0 (exact match) and a case-sensitive comparison, or use INDEX/MATCH with EXACT.

Can I reference a specific sheet in another workbook without typing the whole path? The easiest way is to type =VLOOKUP(, then click on the other workbook and select the range. Excel will insert the correct reference for you. If you type manually, you must include the workbook name in square brackets and the sheet name followed by an exclamation mark.

What happens if the source workbook is open but I edit it? The destination workbook will automatically recalculate when you save the source, provided calculation is set to automatic. If calculation is manual, press F9 to recalculate.

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.