Thanks for asking this question! I've been looking for this myself! I copied a list of Facebook friends into a spreadsheet. They copied as Rich Text, meaning they contained a link, but it wasn't available in =Hypertext format.
I searched forever and it seemed certain there's no easy way around this.
Then I stumbled upon it.
Just select the cell containing the Rich Text (assuming you want to get the link it contains when you hover over it) and hit Command-K to Edit Link.
It will bring up a window where you can enter the Cell Text in the top field, and the URL in the bottom field.
No need to enter anything - it's there by default. So just hit [Enter] and BAM! It's now formatted as =HYPERLINK("URL","Text")
But I had HUNDREDS of these to convert and wanted to find an easier way.
And so I stumbled upon AppleScript (I've never used it til today - even though I'm transitioning away from Apple entirely).
I created a simple AppleScript:
tell application "Google Chrome" to activate
delay 0.5
tell application "System Events"
delay 0.5
tell process "Chrome"
keystroke "k" using command down
delay 0.2
keystroke return
delay 0.2
keystroke return
delay 0.2
keystroke return
delay 0.2
end tell
end tell
Select the cell you want to edit in your spreadsheet (assuming you're using Google Chrome) and then run this AppleScript.
I made several Scripts, all in US Currency amounts. So I have one that runs just once, and then a 5x, a 10x, a 20x, a 50x, and a 100x.
So for my list of 143 names, I just now ran the 100x script, then a 50x script. I sad back and took a sip of coffee while I watched my computer rapidly do the work for me.
Sorry if this is more info than people are looking for -- it's my first time answering a question here (that I recall) and, well, if I had stumbled across the answer I'm writing now -- it would have been a godsend earlier this year!
Happy coding!