Importing CSV with line breaks in Excel 2007

前端 未结 23 2262
悲哀的现实
悲哀的现实 2020-11-29 20:49

I\'m working on a feature to export search results to a CSV file to be opened in Excel. One of the fields is a free-text field, which may contain line breaks, commas, quota

23条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-29 21:06

    If anyone stumbling across this thread and is looking for a definitive answer here goes (credit to the person mentioning LibreOffice:

    1) Install LibreOffice 2) Open Calc and import file 3) My txt file had the fields separated by , and character fields enclosed in " 4) save as ODS file 5) Open ODS file in Excel 6) Save as .xls(x) 7) Done. 8) This worked perfectly for me and saved me BIGTIME!

提交回复
热议问题