Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Contatenate folder path strings, how ?

This is what I have now:

='C:\Reports\[MyReport.xls]March'!B4

I would like to have the path in one central place, instead of updating each
cell if the workbook is moved, renamed or splitted in more workbooks in
different folders.

This way when the Workbook is moved I only have to update the path in one
location. e.g. (cell A2 on AnotherTab)

In cell A2 on AnotherTab I store the path: C:\Reports\[MyReport.xls]

And construct something like this to make it work:

=AnotherTab!A2&'March'!B4 (<-- this does not work)


Can anyone help me please?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,533
Default Contatenate folder path strings, how ?

You need the INDIRECT function:

=INDIRECT(AnotherTab!A2&"March!B4")

Regards,
Per

"Excel-Guy" skrev i meddelelsen
...
This is what I have now:

='C:\Reports\[MyReport.xls]March'!B4

I would like to have the path in one central place, instead of updating
each
cell if the workbook is moved, renamed or splitted in more workbooks in
different folders.

This way when the Workbook is moved I only have to update the path in one
location. e.g. (cell A2 on AnotherTab)

In cell A2 on AnotherTab I store the path: C:\Reports\[MyReport.xls]

And construct something like this to make it work:

=AnotherTab!A2&'March'!B4 (<-- this does not work)


Can anyone help me please?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Contatenate folder path strings, how ?

There is a way to get this using INDIRECT() as below but this works only if
the file is open.

=INDIRECT("'" & AnotherTab!A2 & "March'!B4")

There is no built in function which can do this. You can try the add-in
called Morefunc which has a function called INDIRECT.EXT that will work even
if the source book is closed..

Check out
http://xcell05.free.fr/morefunc/english/index.htm

--
Jacob


"Excel-Guy" wrote:

This is what I have now:

='C:\Reports\[MyReport.xls]March'!B4

I would like to have the path in one central place, instead of updating each
cell if the workbook is moved, renamed or splitted in more workbooks in
different folders.

This way when the Workbook is moved I only have to update the path in one
location. e.g. (cell A2 on AnotherTab)

In cell A2 on AnotherTab I store the path: C:\Reports\[MyReport.xls]

And construct something like this to make it work:

=AnotherTab!A2&'March'!B4 (<-- this does not work)


Can anyone help me please?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Relative Path to a Folder Heliocracy Excel Discussion (Misc queries) 3 October 3rd 07 04:28 PM
Path and Number of files in a folder. - Pass to Macro. Richard Excel Discussion (Misc queries) 1 December 21st 06 09:20 PM
Setting a path to a folder Boots Excel Discussion (Misc queries) 2 August 10th 06 02:14 PM
Browse button on form for folder path Greshter Excel Discussion (Misc queries) 2 January 12th 06 10:20 PM
how to change path name of html source folder ? naruemol Excel Worksheet Functions 0 June 17th 05 03:50 AM


All times are GMT +1. The time now is 09:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"