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 my vlookup path changes when I open the file

I have a VLOOKUP in workbook 'Report' which looks for data in workbook 'Data'.

both workbooks are stored in a common network drive \\office\reports\

the VLOOKUP is written to look in the network drive:
=vlookup(a2,'\\office\reports\[data.xlsx]sheet1'!a:f,6,false)

Often, when one of my team leaves the file, the VLOOKUP changes to
=vlookup(a2,'g:\[data.xlsx]sheet1'!a:f,6,false)

How do I stop it changing from the Network path to the mapped drive?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,346
Default my vlookup path changes when I open the file

Hi,

I don't know about change the mapping instruction on a machine, you might
talk to your IT people.

If both of the files are open then you can use INDIRECT to take care of your
problem: (but indirect returns an error in Excel, if the target file is
closed)

=vlookup(a2,INDIRECT("'\\office\reports\[data.xlsx]sheet1'!a:f"),6,false)

might do it.

--
If this helps, please click the Yes button

Cheers,
Shane Devenshire


"AliGoLightly" wrote:

I have a VLOOKUP in workbook 'Report' which looks for data in workbook 'Data'.

both workbooks are stored in a common network drive \\office\reports\

the VLOOKUP is written to look in the network drive:
=vlookup(a2,'\\office\reports\[data.xlsx]sheet1'!a:f,6,false)

Often, when one of my team leaves the file, the VLOOKUP changes to
=vlookup(a2,'g:\[data.xlsx]sheet1'!a:f,6,false)

How do I stop it changing from the Network path to the mapped drive?

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
How to find file-path of open workbook? Larryq22 Excel Discussion (Misc queries) 7 January 24th 08 03:38 AM
Variabilize File Path or File Name in SumProduct (and Vlookup too) Mike H. Excel Worksheet Functions 2 January 7th 08 09:34 PM
Formula too long - new file path is shorter than old file path - Excel 2003 Greg J Excel Worksheet Functions 1 November 22nd 06 05:16 PM
Workbooks.Open with out full path help needed. dk_ Excel Discussion (Misc queries) 5 November 16th 06 02:40 AM
Excel updating from XML file - file path specific? Sean Excel Discussion (Misc queries) 4 August 5th 05 12:56 PM


All times are GMT +1. The time now is 07:05 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"