Data Import & Export

How to Pull Data from a Closed Excel Workbook Without Opening It

Huma Ashraf ChHuma Ashraf Ch Nov 11, 2026 869 views

Question details

The user needs to extract or summarize data from an external Excel file without having to keep both the source and destination workbooks open simultaneously.

How to Pull Data from a Closed Excel Workbook Without Opening Both Files
Product
Excel
Device & OS
not provided
Scenario
Consolidating, totaling, or retrieving specific data points from another workbook dynamically based on set criteria.
Observed behavior
The user wants formulas or queries to accurately calculate and display values fetched from a closed external file.
Before you start

Ensure you know the exact absolute folder path, workbook filename, and sheet name of the source file, and keep both files in a stable directory to prevent broken links.

Solution 1Recommended

Use SUMIFS with a Fully Qualified External Path

Apply the SUMIFS function by directly pointing to the exact folder path, workbook, and sheet of the closed file.

When linking to a closed workbook, Excel requires the entire absolute path to locate the data. If the source file is moved, renamed, or the path is misspelled, the formula will break and return an error. Using Named Ranges within the source workbook can also help make complex external reference formulas easier to read.

1
Prepare your external reference data

Identify the exact folder path, filename (e.g., Source.xlsx), sheet name, and the cell ranges you want to sum and evaluate in the closed workbook.

2
Start the SUMIFS formula

In your destination workbook, type '=SUMIFS(' and provide the fully qualified path for the sum range, wrapped in single quotes before the exclamation mark, like: 'C:\Folder\[Source.xlsx]Sheet1'!$D$2:$D$500.

3
Add criteria ranges and conditions

Continue the formula by adding the fully qualified criteria range and the target criteria. The complete formula will look like: =SUMIFS('C:\Folder\[Source.xlsx]Sheet1'!$D$2:$D$500, 'C:\Folder\[Source.xlsx]Sheet1'!$A$2:$A$500, A2).

4
Calculate the results

Press Enter. Excel will fetch the data from the closed workbook in the background and display the calculated sum.

Use SUMIFS with a Fully Qualified External Path
Dynamic path adjustments: If you open the source workbook while the destination workbook is also open, Excel temporarily shortens the formula to just the workbook name (e.g., '[Source.xlsx]'). It automatically reverts to the full path when the source file is closed.
Seamless Data Management

Efficiently Manage Data Across Workbooks with WPS Spreadsheet

WPS Spreadsheet fully supports external references, complex formulas like SUMIFS, and advanced data connection features, allowing you to seamlessly pull data from closed workbooks just like Microsoft Excel.

  1. 1. Open WPS Spreadsheet: Launch WPS Office and open your primary destination spreadsheet where you want the external data to appear.
  2. 2. Link to External Data: Type your formula using the standard fully qualified file path syntax (e.g., ='C:\Folder\[File.xlsx]Sheet1'!A1) to fetch data from the closed file.
  3. 3. Manage Workbook Links: Navigate to the 'Data' tab and select 'Edit Links' to safely update, manage, or break connections to any closed workbooks referenced in your file.
100% compatible with Microsoft Excel (.xlsx, .xls, .csv) formatsSeamlessly supports advanced formulas like SUMIFS, VLOOKUP, and INDEX/MATCH across multiple filesLightweight, fast installation, and completely free to useFamiliar user interface ensuring a zero-learning-curve transition
microsoft office alternative - wps office

Frequently Asked Questions

Why does my formula return a #REF! error when the source workbook is closed?

A #REF! error typically occurs if the file path, workbook name, or sheet name is misspelled, or if the source file was moved or deleted. Double-check your absolute file path string to ensure it is perfectly accurate and wrapped in single quotes properly.

Do VLOOKUP and INDEX/MATCH work with closed workbooks?

Yes, both VLOOKUP and INDEX/MATCH functions can successfully pull data from a closed workbook. You must use the fully qualified path in the table_array or lookup_range arguments, similar to the SUMIFS method.

Will the data update automatically if the closed workbook is modified by someone else?

The data in your destination workbook will typically update the next time you open it. Depending on your settings, the application may prompt you with a security warning asking if you want to 'Enable Content' or 'Update Links' upon opening.

Can I use the INDIRECT function to reference a closed workbook?

No, the INDIRECT function only works when the referenced external workbook is currently open in the same application instance. If the source workbook is closed, an INDIRECT formula will immediately return a #REF! error.