Reference an External Workbook Path from a Cell in Excel
Question details
Use a workbook and sheet reference stored in a cell to retrieve a value for a reusable summary sheet.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user wants to change a cell containing an external workbook reference instead of rewriting the summary formula.
- Observed behavior
- The summary formula should read the reference from a cell and return the specified value from the source workbook.
Open both the summary workbook and the source workbook in Excel. Check the source workbook name, sheet name, and cell address before building the reference.
Use INDIRECT to build an external reference from a cell
Use this method when the source workbook can remain open while the summary updates.
In the summary sheet, enter a reference such as [Sales.xlsx]Sheet1 in cell A2. Replace Sales.xlsx and Sheet1 with the open source workbook and worksheet names.
In the cell where you want the result, enter =INDIRECT("'"&SUBSTITUTE(A2,"'","''")&"'!$C$5"). Change $C$5 to the source cell you need.
Change A2 to another open workbook and sheet reference to retrieve the corresponding value. Copy the formula to other rows and enter a source reference in each row's column A.

Build a reusable workbook summary in WPS Spreadsheets
Use WPS Spreadsheets to create a summary formula that reads an external workbook reference from a cell. Keep the source workbook open and test external INDIRECT support in your WPS version.
- 1. Open the workbooks: Open WPS Spreadsheets, then use File > Open to open both the source workbook and the summary workbook.
- 2. Enter the source reference: On the summary sheet, enter the open workbook and sheet name in A2, for example [Sales.xlsx]Sheet1.
- 3. Create the formula: In a result cell, enter =INDIRECT("'"&SUBSTITUTE(A2,"'","''")&"'!$C$5") and replace $C$5 with the source cell address.
- 4. Check the result: Confirm that the formula returns the expected value. If it does not, check the reference and whether your WPS version supports external INDIRECT references.

Frequently Asked Questions
Can INDIRECT read a value from a closed workbook in Excel?
No. Open the source workbook before using INDIRECT with an external reference. For data from closed workbooks, consider importing it through Data > Get Data > From File > From Workbook, where available.
What should I put in the cell containing the workbook reference?
With the source workbook open, enter the workbook name in brackets followed by the sheet name, such as [Sales.xlsx]Sheet1. The formula adds the surrounding single quotes and the source cell address.
Why does my INDIRECT formula return #REF!?
Make sure the source workbook is open and that A2 contains the correct workbook and sheet names. Also check that the cell address after the exclamation mark is valid.
Can I use the same formula for several workbooks?
Yes. Enter a different open workbook and sheet reference in each row of column A, then copy the formula down. Each copied formula reads the reference from its own row.




