Forum Discussion
How to insert hyperlink in text part of non empty excel cell
Hi
I wonder how to make multiple hyperlinks inside a non empty excel cell, s.t. only the urls are shown as hyperlinks – not the entire string in cell.
E.g.
- Type in excel cell “this is a test of hyperlinks to”
- Then add two urls e.g. https://www.google.dk and https://www.google.com
- Now you see in cell
i.e. without hyperlinks for urls.
What I would like to see is like in word
I.e. hover over e.g. "this is a test of hyperlinks to" no url will be shown.
Br
Peter
That is actually not true. I just did more than one link within the same cell.
Watch it working in the file attached.
- T_MSFTUserCopper ContributorI think this should be an enhancement that Microsoft considers putting in place as it is widely used. Google Sheets has the ability to add multiple hyperlinks to different words in a cell without the entire cell taking on one URL or without having to manipulate the document with these workarounds. The issue with the workarounds come when you need to copy/paste that text some place else. Those links and formatting does not carry over. In addition, the hyperlink themselves don't happen automatically as it does in Word or Google Docs.
- sexywexyCopper ContributorThis is something that always plagued me, as I was hoping to do cross referencing between cells, like hyperlinking text to cells in other worksheets for professional documentation or to links elsewhere. This is similar to footnote references or in HTML docs where you can click on a locator, e.g. go to "Section 2" in the "Key Principles" Worksheet.
While this is a creative idea, this solution is very fragile as the moment anything changes or edited, any overlays you've created will all be out of place. I assume that this hasn't changed in the past few months and at least know the answer to this question.- T_MSFTUserCopper Contributor
I completely agree and you make a great point here! -- "...solution is very fragile as the moment anything changes or edited, any overlays you've created will all be out of place".
Doing all those object overlays, etc is more work than it's worth.
- breinerjackCopper Contributor
1 - Enter all text you wish to have in the cell.
2 - Create a link of the cell contents.
2 - Use the text formatting to adjust the text in font of and behind the desired link.
The above will have the entire cell act as the link, but generally the user will click on the blue link. Hope this helps a bit.
You might do the following:
1) On the Insert tab of the ribbon, insert Link (or press Ctrl+K).
2) Enter the URL in the Address box. It will automatically be copied to the 'Text to display' box.
3) Edit the 'Text to display' and add some text:
4) Click OK. The entire cell will act as a hyperlink to the desired URL, but it will display the extra text:
- plauritsCopper ContributorHi Hans
Thanks for response. I know the procedure you mention, this is not what I want since the whole text is marked as hyperlink.
- ricardojoseBrass Contributor
Hi, plaurits
Here I attach a file with a working solution and here I explain how I did it:
1. Right-click the cell and add the link to the website2. Make sure the "Text to display" input is different from the "Address" input.
3. Click OK
4. Select the cell preferably using the arrows on your keyboard.
5. Go to the "Home" tab in the Ribbon
6. On the "Editing" Group. Click the dropdown of the "Clear" menu and select "Clear Formats".
7. Using the formula bar, select the text you want to display as a hyperlink and format it as desired using the commands in the "Font" group within the "Home" tab.