Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dreamz
 
Posts: n/a
Default vlookup with relative paths


is there a way to force excel to use relative paths instead of the full
path to the file in which the table array resides?

right now, vlookup looks for a particular file in a particular
directory, but if the file is moved, it breaks all the formulas. it
would be great if it would use the relative path (e.g. the folder in
which it is placed) to avoid such an error.

thanks.


--
dreamz
------------------------------------------------------------------------
dreamz's Profile: http://www.excelforum.com/member.php...o&userid=26462
View this thread: http://www.excelforum.com/showthread...hreadid=469937

  #2   Report Post  
Harlan Grove
 
Posts: n/a
Default

dreamz wrote...
is there a way to force excel to use relative paths instead of the full
path to the file in which the table array resides?

right now, vlookup looks for a particular file in a particular
directory, but if the file is moved, it breaks all the formulas. it
would be great if it would use the relative path (e.g. the folder in
which it is placed) to avoid such an error.


Without VBA, no.

This often isn't a problem because if external references in one
workbook refer to files in the same directory. Move or copy the files
to another directory. When you open the file with the external
references, Excel will automatically adjust the path to the directory
containing the opened workbook.

However, if you have a workbook in X:\Y\foo referring to a table in
another workbook in X:\Y\bar and you want a relative path like
'..\bar', that requires VBA.

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
Setting links to relative paths from ppt to xls Philj Links and Linking in Excel 2 August 14th 05 03:08 AM
VLOOKUP Limitations chris_manning Excel Worksheet Functions 2 August 9th 05 06:23 PM
Have Vlookup return a Value of 0 instead of #N/A Mr Mike Excel Worksheet Functions 4 May 25th 05 04:51 PM
vlookup data hidden within worksheet Excel Worksheet Functions 0 January 26th 05 12:09 PM
Relative paths to external data? Christopher Blue Excel Discussion (Misc queries) 3 January 1st 05 08:14 PM


All times are GMT +1. The time now is 03:05 PM.

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

About Us

"It's about Microsoft Excel"