How to Pull Data from a Closed Excel Workbook Without Opening It
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.

- 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.
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.
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.
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.
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.
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).
Press Enter. Excel will fetch the data from the closed workbook in the background and display the calculated sum.

Import and Transform Data Using Power Query
Power Query is the ideal method for recurring imports, pulling large datasets, or handling complex data transformations from closed workbooks.
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. Open WPS Spreadsheet: Launch WPS Office and open your primary destination spreadsheet where you want the external data to appear.
- 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. 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.

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.




