Reference another workbook with entire filepath

Jak7217

New Member
Joined
Jan 11, 2019
Messages
31
Office Version
  1. 365
Platform
  1. Windows
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?
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Try this:

Code:
=INDEX('C:\Users\Username\Documents\Report\[Test Workbook.xlsx]Sheet1'!A:A,1,1)
 
Upvote 0
Or
='C:\Users\Username\Documents\Report\[Test Workbook.xlsx]Sheet1'!A1
 
Upvote 0
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?
 
Upvote 0
The full path should reappear if you close the Test Workbook.xlsx workbook.
 
Upvote 0
You're welcome & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,213,506
Messages
6,114,025
Members
448,543
Latest member
MartinLarkin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top