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

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
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,223,711
Messages
6,174,020
Members
452,542
Latest member
Bricklin

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