How to correctly display .csv files within Excel 2013?

后端 未结 7 1223
一个人的身影
一个人的身影 2020-11-27 09:51

It seems Excel 2013 doesn\'t read CSV files correctly (Excel 2010 does). Every time I open .csv files, all my data are displayed in the first column.

I know I can go

7条回答
  •  佛祖请我去吃肉
    2020-11-27 10:24

    I know that an answer has already been accepted, but one item to check is the encoding of the CSV file. I have a Powershell script that generates CSV files. By default, it was encoding them as UCS-2 Little Endian (per Notepad++). It would open the file in a single column in Excel and I'd have to do the Text to Columns conversion to split the columns. Changing the script to encode the same output as "ASCII" (UTF-8 w/o BOM per Notepad++) allowed me to open the CSV directly with the columns split out. You can change the encoding of the CSV in Notepad++ too.

    • Menu Encoding > Convert to UTF-8 without BOM
    • Save the CSV file
    • Open in Excel, columns should be split

提交回复
热议问题