Conditional Hyperlink

B

bearcat

I am trying to open a file using the following VLOOKUP to obtain the file
name based on the contents of C3 and stored in the “Link_Table†in column
G8+2.

=HYPERLINK(VLOOKUP($C$3,Link_Table,G8+2,FALSE))

The file name and path stored in the Link_Table is as follows:

L:\Engrdept\New Manuals\Attach-A-Puller (ABP)\Vacuum\MTC Style\Standard\Text
Files\abpvcover.pdf

Where the L: Drive is on a server named “Mtc4\Shared_Files\â€

I can create a hyperlink in a cell that opens the file OK, but when I “look
it up†it give me an error saying it “Cannot open the specified fileâ€

Any suggestions?
 
D

Dave Peterson

Maybe...

=HYPERLINK("file:////"&VLOOKUP($C$3,Link_Table,G8+2,FALSE))

But this means your =vlookup() has to return the actual path/filename.

=vlookup() won't bring back the hyperlink.
 
B

bearcat

Thanks Dave, this may work. Can't do it now, but I'll give it a try and let
you know if it does not work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top