简体   繁体   English

来自文件夹的 Excel Power Query

[英]Excel Power Query From Folder

I am looking for some advice if the following is feasible.如果以下可行,我正在寻找一些建议。

Each week I have a number of csv files being saved to a folder.每周我都会将一些 csv 文件保存到一个文件夹中。 What I would like to achieve is to combine these files in to one table in Excel so that I can then check, review and amend the data in the table if required.我想要实现的是将这些文件合并到 Excel 中的一个表格中,以便我可以在需要时检查、查看和修改表格中的数据。 This is preferred to opening and amending each of the csv files.这比打开和修改每个 csv 文件更可取。 When new files are added to the folder the following week I would like to append these to the existing table in Excel such that I do not over write the existing data in the table.下周将新文件添加到文件夹时,我想将这些文件附加到 Excel 中的现有表中,这样我就不会覆盖表中的现有数据。 If I use the 'From Folder' feature to combine the csv files I would loose the previous weeks amendments when the entire table is refreshed.如果我使用“从文件夹”功能来组合 csv 文件,我会在刷新整个表格时丢失前几周的修改。

At this time I would welcome views on if this is possible or if I need to consider a different approach.目前,我欢迎就这是否可行或我是否需要考虑不同的方法发表意见。

Thanks SH谢谢 SH

I have decided to compare a current table of records held in the speadsheet to the list of files in the folder using a Merge Anti Right join.我决定使用合并反右连接将电子表格中保存的当前记录表与文件夹中的文件列表进行比较。 This provides a list of 'New' files only which i can then append to the bottom of the current table using vba这仅提供了一个“新”文件列表,然后我可以使用 vba 将其附加到当前表的底部

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM