Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Link to a file whose name is specified in a cell

Status
Not open for further replies.

IFRs

Petroleum
Nov 22, 2002
4,675
I'm trying to type in a file name and then link to it.

='path'[file-name]sheet-name'!cell-reference

I'd like to type in the path, file-name, sheet-name and cell-reference in adjacent cells and have the formula work.

Is this possible?
 
Replies continue below

Recommended for you

Sure, you can CONCATENATE the cells, then HYPERLINK to the concatenation

TTFN
faq731-376
7ofakss

Need help writing a question or understanding a reply? forum1529
 
Concatenate I do all the time, I have not used "Hyperlink".
I'll give it a try.
You don't happen to have an example, do you?
 
When I use Hyperlink, it places a hyperlink to the other worksheet but it does not retrieve the value from the cell.
 
Indirect seems to only work when the child worksheets are open.
I get #REFs in each cell even though the concatenation makes an identical string as that created otherwise, when I navigate to and click on a cell in an open child worksheet.
Brackets, Exclamation Points, Apostrophes and all.

Perhaps more explanation is needed.
I have 20 separate worksheets whose file names change, call them children.
I want to make a summary worksheet, call it the parent, that displays and works with 10 items of data from all the children.
The children worksheets change names for each project but they themselves are clones so the cell addresses within each remains the same.
Some children are XLS and others are XLSX ( does that matter? )
For the first child, I typed in one set of references then copy/pasted the rest.
Then I used copy/replace to change the filename of the rest and Excel wanted to verify each and every link.
Very tedious, so I figured I would create a list in the parent, naming each child and then concatenating the file names to make a fully qualified address.

 
This is discussed at length at:

which includes a post from me with a link to a spreadsheet with some alternative solutions:

[link ][/url]

There is a UDF (Pull()) which works like indirect and is the simplest, but is very slow for more than a few cells.

There are also some macros which work faster, but need to be updated with a button click.

Doug Jenkins
Interactive Design Services
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor