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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
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.
 
Upvote 0
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.

:)
 
Upvote 0
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
 
Upvote 0
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>
 
Upvote 0
=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:
Upvote 0
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:):)
 
Upvote 0
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))
 
Upvote 0

Forum statistics

Threads
1,214,585
Messages
6,120,390
Members
448,957
Latest member
Hat4Life

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
Back
Top