Search code examples
pythonexcellibreoffice-calc

Separate text from URL in Excel column


What I have is a column in Excel with a list of URLs like this:

What I would like is to separate the "text" from the "URL" like this:

I'm using LibreOffice, but I'd accept and answer also for Google Spreadsheet or even a python script.


Solution

  • Three steps simple solution (for Google Sheets):

    • just copy and 'paste values only' to get the text (or use concatenate-with-nothing)

    • check this answer for a custom function to get the url

    • concatenate text and url.