Skip to main content

How to reference or link value in unopened/closed Excel workbook file?

Author: Siluvia Last Modified: 2020-06-17

Normally, when referencing cell value from other workbook, you need to open the workbook firstly. How about directly reference cell value from a closed workbook? This article will show you methods of referencing cell value from a certain worksheet of an unopened workbook file.

Reference value from unopened/closed Excel file with formula
Insert all data of a certain worksheet from unopened/closed Excel file with Kutools for Excel


Reference value from unopened/closed Excel file with formula

Supposing your closed workbook named test locates in the path E:\Excel file\ of your computer, and you want to reference value of cell A2 from Sheet2 of this closed workbook. Please do as follows.

1. Select a blank cell to place the referenced cell value, enter formula into the Formula Bar, and then press the Enter key. See screenshot:

=INDEX('E:\Excel file\[test.xlsx]Sheet2'!A:A,2,1)

Notes:

1). In the formula, E:\Excel file\ is the full file path of the unopened workbook, test.xlsx is the name of the workbook, Sheet2 is the sheet name which contains the cell value you need to reference from, and A:A,2,1 means the cell A2 will be referenced in the closed workbook. You can change them based on your needs.
2). If you want to manually select a worksheet to reference, please apply the below formula. After applying the formula, a Select Sheet dialog box pops up, please select a worksheet and then click the OK button. Then the certain cell value of this worksheet will be referenced immediately.

=INDEX('E:\Excel file\[test.xlsx]sheetname'!A:A,2,1)


Insert all data of a certain worksheet from unopened/closed Excel file with Kutools for Excel

If you want to insert the whole worksheet content from a closed Excel file, here I recommend you the Insert File at Cursor utility of Kutools for Excel. Please follow the below steps to get it done.

Before applying Kutools for Excel, please download and install it firstly.

1. Select a blank cell which you want the referenced worksheet to start with, then click Kutools Plus > Import & Export > Insert File at Cursor

2. In the Insert File at Cursor dialog box, click the Browse button.

3. In the Select a file to be inserted at the cell cursor position dialog box, find and select the closed workbook you want to reference, and then press the Open button. See screenshot:

4. Now it returns to the Insert File at Cursor dialog box, you can check any one of the Value only (no formulas) and Do not transfer formatting options as you need, and then click the OK button. In the next popping up Select a Worksheet dialog box, specify a worksheet, and click the OK button. See screenshot:

Now the whole content in selected worksheet of specified unopened workbook is referenced in current worksheet.

Note: Besides referencing values from unopened workbook, you can also reference values from unopened Txt or CSV file with this utility.

  If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.


Related articles:

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...

Description


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
The Kutools solution to this is useless. It inserts the entire file and not a range or specific cells. What a waste. If Kutools wanted to make a useful tool, they could write something to overcome the Index(Indirect limitation, allowing for dynamic content sourcing without writing VBA
This comment was minimized by the moderator on the site
Hi CJ,
Thank you for your advice.
This comment was minimized by the moderator on the site
I have a worksheet for logging shipments. I want to retrieve the freight costs captured on shipping documents in different workbooks without VBA, whether the workbooks are opened or closed, and have the results returned to my shipping log per the respective shipment. I've manually typed the following path using the "Index" function and it works.

Ex #1: =IF(AND($G5>0,$I5>0,INDEX('V:\Operations\Shipping Log\Argentina\CY 2018\[AR18001_Order# 123456_Customer Name.xlsx]Shipping Document'!$AA:$AA,2,1),0)

The challenge I have is the country, calendar year, log number, order number and customer name are subject to change per shipment. To account for this I used the "Concatenate" function to build the path and replace the manually input information referenced above based on certain fields the user populates in the Shipping Log. First, I tested the "Concatenate" function to build the path and it worked for the consecutive rows. Next, I combined the "Concatenate" function with the "Index" function (to access the closed workbook) and received the text result of the path instead of the value of the desired cell. What am I missing?


Ex #2:=IF(AND($G5>0,$I5>0,INDEX(CONCATENATE("'V:\Operations\Shipping Log\",$C5,"\","CY 20",SUM($JK$2:$NG$2),"\","[",$D5,"_",$I5,"_",$G5,".xlsx]Shipping Document'!$AA:AA,2,1),0)"),"")

$C5 retrieves the country

$JK$2:$NG$2 retrieves the suffix of the calendar year

$D5 retrieves the shipping log number

$I5 retrieves the order number

$G5 retrieves the customer name

AA2 houses the desired value


I also tried "VLOOKUP" function instead of "Index" but received a "#VALUE!" error message.


Ex #3: =IF(AND($G5>0,$I5>0,VLOOKUP("Freight",(CONCATENATE("'V:\Operations\Shipping Log\",$C5,"\","CY 20",SUM($JK$2:$NG$2),"\","[",$D5,"_",$I5,"_",$G5,".xlsx]Shipping Document'!$AA:$AA"),2,FALSE),"")
This comment was minimized by the moderator on the site
Gray, I think I found a solution for you. Please contact me if you are still looking: dons(at )premierconstructionspreadsheets(dot )com
This comment was minimized by the moderator on the site
Same thing happened to me. Exactly the same. Did you find a solution?
This comment was minimized by the moderator on the site
Same thing happened to me. Exactly the same. Did you find a solution?
This comment was minimized by the moderator on the site
Dear Gray,
Do you mind uploading your related workbooks?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations