Why Do My VLOOKUPs Keep Changing?

ransomedbyfire

Board Regular
Joined
Mar 9, 2011
Messages
121
For some reason, every now and then, my VLookups that reference cells in another workbook will change from referencing just "Filename.xls" to the whole long name of the file, beginning with C:\. Since I am making these spreadsheets for use by other people, this is very annoying. Any help is greatly appreciated!
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Oh. That's interesting. What do you suppose would be the best fix then? Or should I consider moving the contents of that workbook to another sheet in the workbook that contains the VLookups?
 
Upvote 0
Oh. That's interesting. What do you suppose would be the best fix then? Or should I consider moving the contents of that workbook to another sheet in the workbook that contains the VLookups?
There's nothing to fix. That just how Excel works. If you link to or reference an external file Excel includes the path to that file in formulas. If the file happens to be closed then the path is a lot longer.

It's a good idea to keep as much of your data as possible in a single file.
 
Upvote 0
Not sure why its a problem unless you running out of characters in your formula, which 2003 you can use 1024 characters. You can add this to the My Workbook section so the external file opens when you open the workbook with the formulas in it

Code:
Private Sub Workbook_Open()
Workbooks.Open Filename:="C:\My_file.xls"
End Sub
 
Upvote 0
The reason I think it might be a problem is if I give the spreadsheet to one of my clients and it tries to reference something on my hard drive (i.e. under my name as a user) not theirs. Also, when the reference changed, it was changing my columns reference of "B:D" to "REF!". So,, I went ahead and put the sheet in the same workbook as the vlookups.
 
Upvote 0
The reason I think it might be a problem is if I give the spreadsheet to one of my clients and it tries to reference something on my hard drive (i.e. under my name as a user) not theirs. Also, when the reference changed, it was changing my columns reference of "B:D" to "REF!". So,, I went ahead and put the sheet in the same workbook as the vlookups.
Yes, that's a good thing to do!
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,280
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top