A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

my vlookup path changes when I open the file



 
 
Thread Tools Display Modes
  #1  
Old February 23rd, 2009, 07:43 PM posted to microsoft.public.excel.worksheet.functions
AliGoLightly
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  
Old February 23rd, 2009, 09:52 PM posted to microsoft.public.excel.worksheet.functions
Shane Devenshire[_3_]
external usenet poster
 
Posts: 3,333
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?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


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


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