Reference another workbook with entire filepath

Jak7217

New Member
Joined
Jan 11, 2019
Messages
13
Hi All:

I am trying to write a formula to reference cell A1 in this workbook. I am using the entire filepath in hopes of being able to access the data without the other workbook being open.

C:\Users\Username\Documents\Report\[Test Workbook.xlsx]Sheet1

Any suggestions?
 

kweaver

Well-known Member
Joined
May 8, 2018
Messages
851
Office Version
365, 2010
Try this:

Code:
=INDEX('C:\Users\Username\Documents\Report\[Test Workbook.xlsx]Sheet1'!A:A,1,1)
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
33,720
Office Version
365
Platform
Windows
Or
='C:\Users\Username\Documents\Report\[Test Workbook.xlsx]Sheet1'!A1
 

Jak7217

New Member
Joined
Jan 11, 2019
Messages
13
Both of these work - thank you for this.

Follow-up: When I use these formulas, the filepath disappears, it only keeps [Test Workbook.xlsx]Sheet1'!A1 ... The problem that I am running into is that I want the filepath to persist in the formula. My ultimate goal for this is to have "Test Workbook MM-DD-YYYY.xlsx" where I can use an indirect function in another workbook to automatically pull data from a specific dated "Test Workbook"

Any thoughts?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
33,720
Office Version
365
Platform
Windows
The full path should reappear if you close the Test Workbook.xlsx workbook.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
33,720
Office Version
365
Platform
Windows
You're welcome & thanks for the feedback
 

Forum statistics

Threads
1,085,488
Messages
5,383,956
Members
401,868
Latest member
herbalgirlskincare

Some videos you may like

This Week's Hot Topics

Top