Non working Hyperlinks when results returned from another sheet

dave6726

Board Regular
Joined
Jul 5, 2007
Messages
63
I have the following problem.
Sheet 2 has a list of names and hyperlinks to other sheets (hyperlinks work)
On sheet one I have created an” Index - Small” formula that searches sheet2 and brings back the results on sheet1
=IF(ISERROR(INDEX(Sheet2!$A$2:$B$497,SMALL(IF(Sheet2!$A$2:$A$497=Sheet2!$A$2,ROW(Sheet2!$A$2:$A$497)),ROW(2:2))-1,2)),"",INDEX(Sheet2!$A$2:$B$497,SMALL(IF(Sheet2!$A$2:$A$497=$G$9,ROW(Sheet2!$A$2:$A$497)),ROW(2:2))-1,2))

However, I also want to bring the hyperlinks results from sheet2. I have used the following.
=HYPERLINK(VLOOKUP(G12, Sheet2!$D$2:$E$10,2,0)) - (name in col D and hyperlink in col E)

My problem is that although the results show as a hyperlink on sheet1, the hyperlinks do not work from sheet1 and I am getting an error message saying “Cannot open the specified file”.

As I said the hyperlink works on sheet2 but not from sheet1 when I pull the results back.
Any advice would be greatly appreciated.
 
I was wondering if there is a way of tidying it up? i.e. Just to show FRED, but for the hyperlink to still work.

Hi, if you look back to the original suggestion in post # 10 you will see that the VLOOKUP() function can be repeated in the "Friendly_Name" parameter.

i.e.

=HYPERLINK("#'"&VLOOKUP(G12,Data!D2:E10,2,0)&"'!A1",VLOOKUP(G12,Data!D2:E10,2,0))

Note that it does add a little extra overhead for obvious reasons.
 
Upvote 0

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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