Note: The other languages of the website are Google-translated. Back to English

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

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)


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:

The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

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!
officetab bottom
Comments (7)
No ratings yet. Be the first to rate!
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
Dear Gray,
Do you mind uploading your related workbooks?
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
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
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.
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations