Excel - Split String from Cells

后端 未结 2 1366
你的背包
你的背包 2021-01-26 03:41

I have a large CSV with a couple of columns containing HTML over hundreds of rows. I need to separate certain parts into new columns. For example, a cell can contain:

2条回答
  •  野性不改
    2021-01-26 04:27

    For the Description: (Output: This is a description)

    =REPLACE(REPLACE(REPLACE(F9,FIND("This is a title",F9,1),LEN("This is a title"),""),1,LEN(".some-class{property:value;}"),""),LEN(REPLACE(REPLACE(F9,FIND("Thisis a title",F9,1),LEN("This is a title"),""),1,LEN(".some-class{property:value;}"),"")),1,"")
    

    For the Title: (Output: This is a title)

    =REPLACE(REPLACE(REPLACE(F9,FIND("This is a description",F9,1),LEN("This is a description"),""),1,LEN(".some-class{property:value;}"),""),LEN(REPLACE(REPLACE(F9,FIND("This is a description",F9,1),LEN("This is a description"),""),1,LEN(".some-class{property:value;}"),"")),1,"")
    

    It is not very solution but you can consider changing the strings inside to formula to get your desired string. It can do (though time-consuming) if you still can't find the best solution.

提交回复
热议问题