Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2008

Tip: Looking for answers? Try searching our database.

Use a cell to name a file to be opened.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Michael - 30 Jun 2008 21:00 GMT
I want to use the contents of a cell as part of an INDEX lookup.  The
contents of the cell would indicate the name of the file I want to open.  Any
ideas?
Jarek Kujawa - 30 Jun 2008 21:44 GMT
INDEX works on open files only

you might try to combine INDEX with INDIRECT
Jarek Kujawa - 30 Jun 2008 21:55 GMT
e.g.

=INDIRECT('C:\Documents and Settings\[&A1&".xls]Bonds'!$H$6")

where A1=Somefile

will retrieve data from file "Somefile.xls" stored in C:\Documents and
Settings\, from cell H6 in worksheet named "Bonds"
Dave Peterson - 30 Jun 2008 22:36 GMT
It's not =index() that has trouble with closed files.  

=indirect() has trouble with closed files.

> e.g.
>
[quoted text clipped - 4 lines]
> will retrieve data from file "Somefile.xls" stored in C:\Documents and
> Settings\, from cell H6 in worksheet named "Bonds"

Signature

Dave Peterson

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.