Graham182

New Member
Joined
Jan 31, 2010
Messages
31
Ok, I've look thought the net and can't yet find an Answer, I think i'll need a macro to work it where i'm more of a Beginner in VBA,

But what i am trying to do is that In Sheet 1 coloum A I have a list of Hyperlink that go to certain Excel spreadsheets.
With in Sheet 2 I have all the details and ID's which will conraspond with some of sheet 1's ID's

I'm trying to Create a Vlookup which will pull from Sheet 1 the Filename. and also the hyperlink

on sheet one is it listed as

91901.xls

at the moment I was just displaying it with Vlookup with a wildcard included =Vlookup("*" & 91901 & "*", Sheet1! A:A, 1, False)
This will bring the file up but when i put Hyperlink in Front it just come up with an error when clicking on it

If anyone can help :)

Thanks :)
 

Comfy

Well-known Member
Joined
Dec 21, 2009
Messages
3,376
What Error did you receive.

I tested your vlookup using: =HYPERLINK(VLOOKUP("*" & 91901 & "*", Sheet1!A:A, 1, FALSE))

And it opened 91901.xls from the hyperlink specified

/Comf.
 

Graham182

New Member
Joined
Jan 31, 2010
Messages
31
I got "Cannot open Specified file."

Is this Because i'm using Microsoft Office 2000?

=HYPERLINK(VLOOKUP("*"&A15&"*",'Sheet'!A:A,1,FALSE))

is the formula

And i want it to open the actual Excel file? Also I've been given advice in the past about downloading new software this is something i can't do because of it being a work pc.

:)
 

Comfy

Well-known Member
Joined
Dec 21, 2009
Messages
3,376
You will get that error if the file your trying to open does not exist.
 

Graham182

New Member
Joined
Jan 31, 2010
Messages
31
But this file does Exist?
If i open it from Sheet1 it goes directly to it?
 

Comfy

Well-known Member
Joined
Dec 21, 2009
Messages
3,376
It maybe a typo for the Vlookup reference?

=HYPERLINK(VLOOKUP("*"&A15&"*", Sheet1!A:A, 1, FALSE))

Otherwise I can't help sorry Graham. Can't re-create the problem your having.

Good Luck,

/Comf
 

Graham182

New Member
Joined
Jan 31, 2010
Messages
31
hyperlink without Directory?

Ok after looking more into I had a Discovery why mine wasn't working and yours was.

its because in sheet 1 I have my Hyperlinks listed just by the file name instead of the directory file name

so I had 91903.xls instead of C:\DocumentsandSettings\User\MyDocuments\91903.xls

so i've ajusted my sheet1 to have all directorys.

but unfortuatly when i'm now doing the Vlookup Hyperlink onto Sheet2 its pulling over the hyperlink but also the Complete directory so is there anyway to just pull over the file name but the hyperlink still to work???

If anyone can help that would be great, My last problem and its sorted :)
<TABLE style="WIDTH: 48pt; BORDER-COLLAPSE: collapse" border=0 cellSpacing=0 cellPadding=0 width=64 x:str><COLGROUP><COL style="WIDTH: 48pt" width=64><TBODY><TR style="HEIGHT: 12.75pt" height=17><TD style="BORDER-BOTTOM: #ece9d8; BORDER-LEFT: #ece9d8; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 12.75pt; BORDER-TOP: #ece9d8; BORDER-RIGHT: #ece9d8" height=17 width=64>
</TD></TR></TBODY></TABLE>
 

Comfy

Well-known Member
Joined
Dec 21, 2009
Messages
3,376
=HYPERLINK(VLOOKUP("*"&A15&"*",Sheet1!A:A,1,FALSE),A15)

Will Return the Hyperlink from Sheet1 and give it the name or number that you typed in A15.

IF you prefer to have the file extension aswell you could try:

=HYPERLINK(VLOOKUP("*"&A15&"*",Sheet1!A:A,1,FALSE),A15 & ".xls")
 
Last edited:

Graham182

New Member
Joined
Jan 31, 2010
Messages
31
Worked perfectly, I created a normal Vlookup to a cell a few right over that just pull the hyperlink name and linked it to that.
in all Thanks for all your help Comfy I needed it:):)
 

brianlb

Board Regular
Joined
May 12, 2009
Messages
83
Can someone assist on this Vlookup & Hyperlink formula. Everything looks correct, but the result is just 0 with a link that doesn't work.

=HYPERLINK(VLOOKUP(C6,'Investor Matrix'!$1:$65536,4,FALSE),VLOOKUP(C6,'Investor Matrix'!$1:$65536,4,FALSE))
 

Forum statistics

Threads
1,081,748
Messages
5,361,057
Members
400,611
Latest member
ThebigG

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top