How to use a hyperlink to a webbrowser which includes ampersand (&) in its name?

Sabilica

New Member
Joined
Oct 13, 2021
Messages
2
Office Version
  1. 365
Platform
  1. MacOS
I am currently in the midst of making a small library of links in Microsoft Team Excel. Where I have met a wall, where I cannot use the link, as they are redirected due to the including ampersand in the title. Example:

xxxxxx.com/xxx/xxx/?action=show&product=301

Which is translated to;

xxxxxx.com/xxx/xxx/?action=show&product=301



So how am I supposed to get around that.



I have seen a lot of examples of but renaming the destination (which is not a valid option), and using and encoding reference, which does not seem to apply for this context.



Currently the formula I am dealing with is: =HYPERLINK(H14;$F$1);

‘H14’ being the hyperlink, and ‘F1’ being the visual name.
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Welcome to the MrExcel Message Board!

I didn't understand why the URL string is translated/encoded, however, if H14 contains the URL with encoded version of the ampersand symbol, then you can use SUBSTITUTE function to replace it in the HYPERLINK function:

Excel Formula:
=HYPERLINK(SUBSTITUTE(H14,"&","&"), $F$1)
 
Upvote 0
Thanks for your response Smozgur!

Unfortanetely it does not work, as it seems as if the Team-version of Excel are encoding the hyperlink after you click on the link - rather than after the excel function. It does however work perfectly in regular excel.

So it still does not work, as the link is always translate "&" to "&", as long as it is opened directly through Teams.
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

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