可以根据列选择将多个csv文件合并到xls文件中吗? [英] can multiple csv files be merged into xls file dependant on column selection?

查看:95
本文介绍了可以根据列选择将多个csv文件合并到xls文件中吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我每天都会收到许多不同的csv文件。我需要的数据包含在每个数据的不同列中(并且在我收到文件之前不能更改格式)。文件名不同,每天更改,后缀为yyyy / mm / dd。我可以自动从每个文件中选择相应列的过程,复制记录然后合并记录吗?



I receive a number of different csv files daily. The data i need is contained in different columns in each (and the format cannot be changed before i receive the files). The file names are different and change on a daily basis with the suffix being yyyy/mm/dd. Can i automate the process of selecting the respective columns from each file, copying the records and then merging the records?

附加文件
help.ZIP (821 Bytes,87 views)
Attached Files
help.ZIP (821 Bytes, 87 views)

推荐答案

版本Office / Excel?

CSV文件是否具有标题?行?

请告诉我他们没有使用/在文件名中...


很可能,你必须将整个文档导入临时工作表,然后解析出你需要的信息。



这是手动处理它们的基础知识(我的意思是基本:) :):导入或导出文本(.txt或.csv)文件
Version of Office/Excel?
Do the CSV files have a "header" row?
Please tell me that they are not using the "/" in the file names...

More than likely, you''ll have to import the entire document into a temporary worksheet and then parse out the information you need.


This is the basics for handling them manually (and I do mean basic :) ): Import or export text (.txt or .csv) files


  1. 根据zmbd的要求,CSV文件中是否有标题行?
  2. 部分或全部文件的标题行?
  3. 有多少个CSV文件?
  4. 所有CSV文件都位于同一个文件夹中吗?
  5. 是CSF文件的基本名称是否一致?
  6. 每个CSV文件是否与其他文件表示相同数量的记录?
  7. 什么是列规范,即从哪些列中提取哪些列CSV文件?
  8. 提供一些具体的数据,如果可能的话上传一个* .csv文件。
  9. 等...


其实你不需要上传CSV文件,如果您单击[CODE /]格式按钮并在代码标记之间粘贴标题行和数据的前几行。这样我们就可以查看数据而无需下载和打开文件。
Actually, you need not upload the CSV file, if you will click on the [CODE/] format button and paste the header row and the first few rows of the data between the code tags. This way we can all review the data without having to download and open a file.


这篇关于可以根据列选择将多个csv文件合并到xls文件中吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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