Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default Formula Referencing Cell Content

I'd like to set up a formula that references a filename that is contained
within a cell.

my formula currently is:

=VLOOKUP($B3,[02.10.06.XLS]Summary'!$M$6:$T$27,5,FALSE)))

I would like the filename to read from cell C2, which contains '03.10.06' so
it would read:

=(VLOOKUP($B3,[(contentof c2).XLS]Summary'!$M$6:$T$27,5,FALSE)))

This would just save me so much time finding and replacing dates in the
formula, which I am doing at the moment.

Any ideas?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 459
Default Formula Referencing Cell Content

shakey1181 wrote:
I'd like to set up a formula that references a filename that is
contained within a cell.

my formula currently is:

=VLOOKUP($B3,[02.10.06.XLS]Summary'!$M$6:$T$27,5,FALSE)))

I would like the filename to read from cell C2, which contains
'03.10.06' so it would read:

=(VLOOKUP($B3,[(contentof c2).XLS]Summary'!$M$6:$T$27,5,FALSE)))

This would just save me so much time finding and replacing dates in
the formula, which I am doing at the moment.

Any ideas?



Hi,

you could use the INDIRECT function inside VLOOKUP:

=(VLOOKUP($B3,INDIRECT("["&C2&".XLS]Summary'!$M$6:$T$27"),5,FALSE)))

but pay attention: the file whose name is in C2 *must* be opened, otherwise
the result would be #VALUE!

If you need the file in C2 to be closed you could download a free add-in,
Morefunc from Laurent Longre (http://xcell05.free.fr/english/) which
contains the function INDIRECT.EXT, that is the same as INDIRECT working
also with closed workbooks.


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


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
Conditional Formatting if cell content is a formula oldsambvca Excel Worksheet Functions 2 June 6th 06 10:24 PM
assign formula to another cell Dannycol Excel Worksheet Functions 3 May 12th 06 09:46 PM
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 07:48 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM


All times are GMT +1. The time now is 11:30 AM.

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

About Us

"It's about Microsoft Excel"