Data Import & Export

Can Microsoft Excel Use Wildcards in External Workbook References?

Ayan MasoodAyan Masood Nov 12, 2026 869 views

Question details

Learn how to work with external Excel source files when the workbook name changes because it includes a date, timestamp, or other variable text.

Can Microsoft Excel Use Wildcards in External Workbook References?
Product
Microsoft Excel
Device & OS
not provided
Scenario
The user wants an external workbook reference to locate a source file whose name is not always the same.
Observed behavior
Excel does not support wildcard characters such as * or ? directly in external workbook or worksheet references.
Before you start

Identify the folder that contains the changing source files and use a consistent naming pattern where possible. If you use INDIRECT, open the source workbook before recalculating the formula.

Solution 1Recommended

Import changing source files with Power Query

Use this recommended method when source workbook or CSV file names change regularly and the files are stored in one folder.

Power Query can connect to a folder rather than a single fixed file name. You can filter, sort, and combine files so the query loads the appropriate source data without placing wildcards in a worksheet reference.

1
Place source files in one folder

Move the changing Excel or CSV source files into a dedicated folder, and keep the files in a compatible table or column structure.

2
Connect Excel to the folder

In Excel, select Data > Get Data > From File > From Folder, choose the folder, and select Open.

3
Filter or combine the files

In the folder preview, use Transform Data to filter by file extension or name pattern, then select Combine Files or load the selected file data.

4
Refresh when a new file arrives

After adding a new dated or timestamped file to the folder, select Data > Refresh All to update the imported results.

Import changing source files with Power Query
Best option for changing file names: A folder query avoids volatile formulas and does not require a direct external cell reference to a file with a fixed name.
Free Microsoft Office alternative

Manage spreadsheet imports with WPS Office

If you need a free, lightweight office suite for everyday spreadsheet work, WPS Office provides a familiar spreadsheet interface and supports seamless migration of your existing files. Open and edit Excel workbooks while keeping common formulas, tables, and worksheet layouts compatible.

Work with spreadsheet data in a familiar, easy-to-use interface.Open and edit Microsoft Excel XLSX, XLS, and CSV files.Import and organize data from compatible spreadsheet and text files.Move existing Excel workbooks to WPS Office with minimal format disruption.
microsoft office alternative - wps office

Frequently Asked Questions

Can I use an asterisk in an Excel external workbook reference?

No. Excel external references require an exact workbook and worksheet name; wildcard characters such as * and ? are not supported in the reference path.

Why does an INDIRECT external reference return an error when the source file is closed?

INDIRECT generally requires the referenced external workbook to be open. Open the source workbook, then use Formulas > Calculate Now to refresh the formula.

How can I import the newest dated Excel file from a folder?

Use Data > Get Data > From File > From Folder in Excel. In Power Query, sort or filter the folder file list by name or modified date, then load the desired file's contents.

Can Power Query combine several CSV or Excel files with changing names?

Yes. Choose Data > Get Data > From File > From Folder, select the folder, and use Combine Files. The source files should use consistent columns and data structures.