Hyperlink function to web link

expeo

New Member
Joined
Dec 1, 2017
Messages
17
I have exported a worksheet from a SharePoint library, it has the file name and the hyperlink to the SharePoint location already.

I am attempting to match these to another link that has the same list of file names so I used the command
Code:
=HYPERLINK(VLOOKUP(G2,A:A,1,FALSE),G2)

G2 is the file name reference, column A includes the exported file name with the hyperlink

Now if I click on the original cell (that was exported from SharePoint), it directs me to the location with no issues. But if I click on the new cell with the function, I get the message "Cannot open the specified file."

How can I fix this? Is there an alternative solution to this, possibly something in VBA?
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
What is the exact url... is it preceded by http:// or what? I suspect that may be the problem.
 
Upvote 0
hmmm without the =hyperlink wrapper does it return the entire link?
Code:
=[COLOR=#333333]VLOOKUP(G2,A:A,1,FALSE)[/COLOR]
 
Upvote 0

Forum statistics

Threads
1,216,895
Messages
6,133,328
Members
449,799
Latest member
laksj432

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