Function Problems

Create a Dynamic VLOOKUP for a Closed Excel Workbook

Khadija KhanKhadija Khan Nov 25, 2026 869 views

Question details

Create a VLOOKUP that can use a changeable workbook and worksheet range when the source workbook may be closed.

Create a Dynamic VLOOKUP for a Closed Excel Workbook
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.
Before you start

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.

Solution 1Recommended

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.

1
Create a source name

In the workbook containing the lookup, select Formulas > Name Manager > New. Enter SourceRange as the name.

2
Set the external range

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.

3
Enter the lookup formula

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.

4
Update the source when needed

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.

5
Check the external link

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.

Use a Named Range for the External VLOOKUP Source
Automatic file-name changes: Changing a closed workbook reference automatically from a cell value generally requires VBA or another external data method. Excel's INDIRECT function does not resolve references to closed workbooks.
Free Microsoft Office alternative

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.

Use VLOOKUP to find values in spreadsheet tables.Open and edit Microsoft Excel XLSX files.Work in a familiar spreadsheet interface that makes migration easier.Use a free, lightweight Office suite.
microsoft office alternative - wps office

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.