Excel cell reference that directs to file in same folder (Not set location)

I have a file that currently has a cell that refers to another file in a shared drive location.
='C:\Users\Guy Godwin\Desktop\2015 PPM\[19502.xls]TOTAL'!$G11

Is there a methods that refer this cell to the current path of the file being used.
=Currentpath\ [19502.xls]TOTAL'!$G11
or =Currentdirectory\[19502.xls]TOTAL'!$G11
ggodwinAsked:
Who is Participating?
 
Ejgil HedegaardCommented:
You don't have to do anything specific with formulas to tell Excel to look in the same folder as the file.
Save both files in the same folder.
Open the file with the links, and adjust the links (on the Data tab) to use the file in the same folder.
Then you can copy both files to a new folder and the links will point to the new location.
0
 
ggodwinAuthor Commented:
More details.
I have a file names
2015_PPM.xls
In the same folder I have 30 other files that look like.
#####_Quality_2015.xls

I want to link cells in 2015_PPM.xls to the #####_Quality_2015.xls.

However, I want to use the current path because this folder may move on occasions.
0
 
Rgonzo1971Commented:
Hi,

pls try

=LEFT(CELL("filename",A1),FIND("[",CELL("filename",A1),1)-1)

Open in new window


Regards
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
Rob HensonFinance AnalystCommented:
When building a File Link in a text string you will then have to use the INDIRECT function:

=INDIRECT(FilePath&Name_String)

However, INDIRECT doesn't work when the source file is closed.

Thanks
Rob H
0
 
ggodwinAuthor Commented:
Rgonzo,
I'm trying to apply your method. But, I'm not sure what variables I need to replace.
Example: Is A1 a cell reference from the source file? or destination file?
0
 
Rob HensonFinance AnalystCommented:
Indeed, as Ejgil says, so long as both files move in unison the links will stay valid.

Totally
 forgot that.

Rob
0
 
ggodwinAuthor Commented:
This resolution does it work. It is not exactly what I was looking for but it does work.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.