Excel - Split String from Cells

后端 未结 2 1340
你的背包
你的背包 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:16

    To prevent super long formulas, may be easier to split formulas over two columns and hide the column if you want. For example, if you text is the A column, then put these formulas in the following cells: into B1:

    =RIGHT(A1,LEN(A1)-FIND("class=""title"">",A1)-13)
    

    into C1:

    =LEFT(B1,FIND("

    into D1:

    =RIGHT(A1,LEN(A1)-FIND("class=""description"">",A1)-19)
    

    into E1:

    =LEFT(D1,FIND("

    then copy\fill down.

提交回复
热议问题