Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Using VLOOKUP with a reference to a different file...

Hello.

I'm using VLOOKUP to grab data from a different file... that part is pretty
simple. The problem is the file name gets changed a lot. I need to have one
cell that has the path, and somehow get VLOOKUP to reference it's table_array
portion to that cell's path. that way instead of changing the 532 formulas
everytime someone changes the file name I can just change that one cell.

I'm having trouble getting this to work, I think the problem is with telling
it to look at the first tab but i'm not entirely sure.

please help!!!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Using VLOOKUP with a reference to a different file...

On Aug 13, 10:02*am, beeblemonster
wrote:
Hello.

I'm using VLOOKUP to grab data from a different file... that part is pretty
simple. The problem is the file name gets changed a lot. I need to have one
cell that has the path, and somehow get VLOOKUP to reference it's table_array
portion to that cell's path. that way instead of changing the 532 formulas
everytime someone changes the file name I can just change that one cell.

I'm having trouble getting this to work, I think the problem is with telling
it to look at the first tab but i'm not entirely sure.

please help!!!!!


change the table_array portion to an indirect function. If you place
the filename in cell A1, then make your formula
VLOOKUP(B1,INDIRECT(A1),2). Remember to place the filename in the
format of something like:
C:\Documents and Settings\tsides\My Documents\[Book1.xls]Sheet1'!$A
$2:$B$5

You could even hardcode the path and just put the filename in A1:
VLOOKUP(B1,INDIRECT("C:\Documents and Settings\tsides\My Documents\
["&A1&"]Sheet1'!$A$2:$B$5"),2)
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Using VLOOKUP with a reference to a different file...

The won't work since INDIRECT does not work with files that are closed so
the only way is to open the file and thus the path is not necessary just the
file name.

If the OP does a Google search for Morefunc he can download and install that
add-in and one of the functions in that add-in is called INDIRECT.EXT which
will work with closed files

--


Regards,


Peo Sjoblom

wrote in message
...
On Aug 13, 10:02 am, beeblemonster
wrote:
Hello.

I'm using VLOOKUP to grab data from a different file... that part is
pretty
simple. The problem is the file name gets changed a lot. I need to have
one
cell that has the path, and somehow get VLOOKUP to reference it's
table_array
portion to that cell's path. that way instead of changing the 532 formulas
everytime someone changes the file name I can just change that one cell.

I'm having trouble getting this to work, I think the problem is with
telling
it to look at the first tab but i'm not entirely sure.

please help!!!!!


change the table_array portion to an indirect function. If you place
the filename in cell A1, then make your formula
VLOOKUP(B1,INDIRECT(A1),2). Remember to place the filename in the
format of something like:
C:\Documents and Settings\tsides\My Documents\[Book1.xls]Sheet1'!$A
$2:$B$5

You could even hardcode the path and just put the filename in A1:
VLOOKUP(B1,INDIRECT("C:\Documents and Settings\tsides\My Documents\
["&A1&"]Sheet1'!$A$2:$B$5"),2)


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Using VLOOKUP with a reference to a different file...

Thanks; I have many uses for that that add-in myself!
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Using VLOOKUP with a reference to a different file...

It's not working at all....
would it have something to do with the fact that both files aren't on my
hardrive... they are on a company server in password protected folder?

I've been trying to get this to work for hours... with and without it open. :(


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Using VLOOKUP with a reference to a different file...

Post the formula(s) that you have tried, and tell us what error
message you are getting.

Pete

On Aug 13, 10:00*pm, beeblemonster
wrote:
It's not working at all....
would it have something to do with the fact that both files aren't on my
hardrive... they are on a company server in password protected folder?

I've been trying to get this to work for hours... with and without it open. :(


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
Linking to another file using file reference typed cell Steven Excel Worksheet Functions 3 April 5th 08 03:15 AM
cross-reference data from one file to another file Zancouth Excel Discussion (Misc queries) 1 May 30th 06 11:25 AM
VLOOKUP Reference Help Max Excel Discussion (Misc queries) 4 December 19th 05 07:28 PM
How do I reference external data from a file, file name found in . Clux Excel Discussion (Misc queries) 1 February 10th 05 10:52 PM
copy/paste from one file to another without file name reference slvrblt Excel Discussion (Misc queries) 4 February 6th 05 08:57 PM


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