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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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
Become a Microsoft Certified Solutions Expert

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.