Create a Dynamic VLOOKUP for a Closed Excel Workbook
Question details
Create a VLOOKUP that can use a changeable workbook and worksheet range when the source workbook may be closed.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A lookup formula needs to use data from an external workbook whose file or worksheet range may change.
- Observed behavior
- The desired formula should continue to work with a closed source workbook while allowing its source reference to be updated.
Identify the source workbook path, worksheet name, and lookup columns. Make sure the lookup column is the first column in the selected range and the return column is within that range.
Use a Named Range for the External VLOOKUP Source
Use this method to keep the VLOOKUP formula unchanged while manually updating its source workbook or range.
A named range stores the external reference separately from the VLOOKUP formula. Updating the name changes the source used by formulas that refer to it; the name does not automatically follow a workbook path entered in a cell.
In the workbook containing the lookup, select Formulas > Name Manager > New. Enter SourceRange as the name.
In the Refers to box, enter the reference to the source workbook, worksheet, and lookup range. For example, on Windows, use ='C:\Reports\[Source.xlsx]Data'!$A$2:$B$1000, replacing the path, file name, sheet, and range with your own. Select OK.
In the result cell, enter =VLOOKUP($A2,SourceRange,2,FALSE). This example looks for A2 in the first column of SourceRange and returns a value from its second column.
When the workbook or range changes, open Formulas > Name Manager, select SourceRange, and edit Refers to. Save the change; the VLOOKUP formula itself can remain the same.
Close the source workbook and check the lookup result. If Excel prompts you to update external links, allow the update if you trust the source.

Replace the Source Workbook Without Changing the Reference
Use this workaround when a replacement file can use the same path, file name, worksheet, and lookup layout as the existing source.
Work With VLOOKUP Formulas in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open Excel files and work with VLOOKUP formulas while moving between compatible Office formats. It does not fix Excel's closed-workbook reference limitations.

Frequently Asked Questions
Can VLOOKUP read from a closed Excel workbook?
Yes. VLOOKUP can use a direct external reference or a named range that refers to a closed workbook. Excel may prompt you to update external links when you open the lookup workbook.
Can INDIRECT build a reference to a closed workbook?
No. Excel's INDIRECT function requires the referenced workbook to be open. For a closed workbook, use a direct external reference or consider VBA or an external data method.
How do I change the worksheet range without editing every formula?
Select Formulas > Name Manager, choose the named range used by the formulas, and edit its Refers to value. Formulas that use that name will use the updated reference.
What happens if the replacement workbook has a different sheet name?
The existing reference will not point to the new sheet name. Rename the sheet to match the reference or update the sheet name in Formulas > Name Manager.




