How to extract URL from Link in Google Sheets using a formula?

后端 未结 9 1960
面向向阳花
面向向阳花 2020-12-13 09:33

I have copied from a website a series of hyperlinks and pasted them in a google sheet. The values show up as linked text, not hyperlink formulas, and are still linked correc

9条回答
  •  隐瞒了意图╮
    2020-12-13 10:12

    If your hyperlink is specified in another cell as a formula—for example let's suppose that cell A1 contains the formula =HYPERLINK("https://www.wikipedia.org/","Wikipedia"), you can extract the Link text using a regular expression. All you need to do is:

    =REGEXEXTRACT(FORMULATEXT(A1),"""(.+)"",")

    This formula will yield the result:

    https://www.wikipedia.org/

    No custom functions required.

提交回复
热议问题