如何转换csv文件拆分逗号并导出到c#中的excel列 [英] how to convert csv files split comma and export to columns of excel in c#

查看:134
本文介绍了如何转换csv文件拆分逗号并导出到c#中的excel列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi


i我正在尝试将.csv文件转换为.xls文件。



我能够做到这一点。但问题是,当它更改为.xls文件时,逗号分隔值显示在单个单元格中,如



abc,50,60,usa



mno,68,93,加拿大







请问任何正文请告诉我如何用逗号分割它我希望数据在不同的单元格中

hi
i am trying to convert a .csv file to .xls file.

and i am able to do it . but the problem is when it changes to .xls file the comma seperated values are displaying in a single cell like

abc,50,60,usa

mno,68,93,canada



can any body please tell how to split it by comma and i want the data in a different cells

推荐答案

您是否尝试打开Excel然后从Excel打开CSV?



如果csv打开Excel,则不进行转换。

如果在Excel中,则打开csv文件, Excel将询问如何转换csv,而您不必准备csv。
Have you try to open Excel and then, from Excel, open the CSV ?

If Excel is opened by the csv, no conversion is done.
If in Excel, you open a csv file, Excel will ask how to convert the csv, and you don't have to prepare the csv.


这篇关于如何转换csv文件拆分逗号并导出到c#中的excel列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆