excel导入csv文件_如何将包含以0开头的列的CSV文件导入Excel

excel导入csv文件

excel导入csv文件

Microsoft Excel will automatically convert data columns into the format that it thinks is best when opening comma-separated data files. For those of us that don’t want our data changed, we can change that behavior.

Microsoft Excel将在打开以逗号分隔的数据文件时自动将数据列转换为它认为最佳的格式。 对于那些不想更改数据的人,我们可以更改其行为。

You have a CSV file probably exported from other application or given to you by other people. You would like to open it up in Excel since you know it very well. The CSV file will look like this (if you open the file in notepad.exe):

您有一个CSV文件,它可能是从其他应用程序导出或由其他人提供给您的。 您很想在Excel中打开它。 CSV文件将如下所示(如果您在notepad.exe中打开文件):

The file contains columns: ProductModelID, Name, SpecialID, and ModifiedDate. The column SpeicalID containing data with leading 0 and it is specialized code so you would like to keep the leading 0s in Excel. Since it is a CSV file it is, by default, shown in your Windows Explorer as an Excel file:

该文件包含以下列:ProductModelID,Name,SpecialID和ModifiedDate。 SpeicalID列包含前导0的数据,它是专用代码,因此您希望在Excel中保留前导0。 由于它是CSV文件,因此默认情况下在Windows资源管理器中将其显示为Excel文件:

So you double-click the file and open the file in Excel as such:

因此,您双击该文件并按如下方式在Excel中打开该文件:

You can see that by default, Excel stripped out the leading 0s in column 3 “SpecialID

您可以看到,默认情况下,Excel在第3列“ SpecialID”中去除了前导0

翻译自: https://www.howtogeek.com/howto/microsoft-office/how-to-import-a-csv-file-containing-a-column-with-a-leading-0-into-excel/

excel导入csv文件

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值