Turn Excel line break into

前端 未结 3 536
深忆病人
深忆病人 2020-12-16 01:47

A client sent me a huge list of product name and descriptions. The Description cells have text wrap and many line breaks. I need to import this into a MySQL which I do throu

3条回答
  •  没有蜡笔的小新
    2020-12-16 02:31

    First make sure you account for both CR and LF which tend to come together. The codes for these are 0013 and 0010 and so you will need a formula that allows you to clean both. I used this formula successfully =SUBSTITUTE(A3,CHAR(13),"
    ")
    to convert a cell of long text in excel replacing invisible breaks with the 'br' tag. Since you can't tell exactly what kind of line break you have you can also try it with 0010 or =SUBSTITUTE(A3,CHAR(10),"
    ")

提交回复
热议问题