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 :)
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Comfy

Well-known Member
Joined
Dec 21, 2009
Messages
3,386
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,386
You will get that error if the file your trying to open does not exist.
 

Graham182

New Member
Joined
Jan 31, 2010
Messages
31

ADVERTISEMENT

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,386
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

ADVERTISEMENT

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,386
=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))
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,151,857
Messages
5,766,792
Members
425,379
Latest member
thedoctor00

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top