Extract URL From Excel Hyperlink Formula

后端 未结 6 1747
温柔的废话
温柔的废话 2020-12-06 08:00

I have an Excel file with hundreds of cells that use the Hyperlink formula =HYPERLINK( , ). I need to extract the plain te

6条回答
  •  情深已故
    2020-12-06 08:32

    Non-VBA possibility:

    Work on copies of the cells with links because the first step is to replace part of their content (specifically = with I suggest the not sign ¬). Then, assuming the copy is in A1:

    =SUBSTITUTE(LEFT(MID(A1,13,LEN(A1)),FIND("""",MID(A1,13,LEN(A1)))-1),"¬","=")  
    

    and replace ¬ with = where the link contains an equals sign.

提交回复
热议问题