Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
ERR229
 
Posts: n/a
Default Referencing a filename in a formula

I have a file containing a list of names in column A and a lookup to
individual data files in column B

John Smith =Vlookup(A1,F:\Data\[John Smith]Sheet1!$A$1:$D$50,3,false)
Jane Doe =Vlookup(A1,F:\Data\[Jane Doe]Sheet1!$A$1:$D$50,3,false)

The players sometimes change, so the reference to the file changes. I would
like to be able to pull the filename reference in the formula from the name
in column A. So if I change John Smith to Ted Nugent, the formula
automatically references Ted Nugent's file.

Does anyone know if this can be done?

Thanks in advance for your help!

--ERR

--
ERR229
  #2   Report Post  
Posted to microsoft.public.excel.misc
kassie
 
Posts: n/a
Default Referencing a filename in a formula

Try using INDIRECT. =VLOOKUP(A1,F:\Data\&INDIRECT(<Cell ref for John
Smith)&Sheet1!$A$1:$D$50,3,FALSE).

I don't have another drive to test this, but it might work. I tested with
range names on the same workbook, and it worked fine.

"ERR229" wrote:

I have a file containing a list of names in column A and a lookup to
individual data files in column B

John Smith =Vlookup(A1,F:\Data\[John Smith]Sheet1!$A$1:$D$50,3,false)
Jane Doe =Vlookup(A1,F:\Data\[Jane Doe]Sheet1!$A$1:$D$50,3,false)

The players sometimes change, so the reference to the file changes. I would
like to be able to pull the filename reference in the formula from the name
in column A. So if I change John Smith to Ted Nugent, the formula
automatically references Ted Nugent's file.

Does anyone know if this can be done?

Thanks in advance for your help!

--ERR

--
ERR229

  #3   Report Post  
Posted to microsoft.public.excel.misc
Mike McLellan
 
Posts: n/a
Default Referencing a filename in a formula

If the other files are closed then you will need to use INDIRECT.EXT (see
http://xcell05.free.fr/english/)

"kassie" wrote:

Try using INDIRECT. =VLOOKUP(A1,F:\Data\&INDIRECT(<Cell ref for John
Smith)&Sheet1!$A$1:$D$50,3,FALSE).

I don't have another drive to test this, but it might work. I tested with
range names on the same workbook, and it worked fine.

"ERR229" wrote:

I have a file containing a list of names in column A and a lookup to
individual data files in column B

John Smith =Vlookup(A1,F:\Data\[John Smith]Sheet1!$A$1:$D$50,3,false)
Jane Doe =Vlookup(A1,F:\Data\[Jane Doe]Sheet1!$A$1:$D$50,3,false)

The players sometimes change, so the reference to the file changes. I would
like to be able to pull the filename reference in the formula from the name
in column A. So if I change John Smith to Ted Nugent, the formula
automatically references Ted Nugent's file.

Does anyone know if this can be done?

Thanks in advance for your help!

--ERR

--
ERR229

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
hyperlink to sheet in formula, can't save under new filename Franky Excel Worksheet Functions 0 April 21st 06 04:20 PM
need help referencing cell using result of formula nosliw Excel Discussion (Misc queries) 1 April 1st 06 06:54 AM
how to use a cell to enter a filename in a formula John Excel Worksheet Functions 2 March 11th 06 09:26 PM
copy formula referencing sheet name to another sheet Tat Excel Worksheet Functions 1 June 26th 05 03:00 AM
Referencing Sheets in a Formula Christopher Anderson Excel Discussion (Misc queries) 1 January 31st 05 04:10 PM


All times are GMT +1. The time now is 09:17 AM.

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"