简体   繁体   English

Excel:从每日更换的 excel 文件中获取数据

[英]Excel: Getting data from a daily replaced excel file

I have an location in one drive for business where an.xls file is getting daily replaced via flow automation.我在一个业务驱动器中有一个位置,每天通过流自动化替换一个 .xls 文件。 The data structure, columns is the same.数据结构,列是一样的。 What I want is to create an excel online workbook that would get its data from that daily replaced xls.我想要的是创建一个 excel 在线工作簿,该工作簿将从每天更换的 xls 中获取其数据。 I tried once but as soon as the source file got replaced and I clicked on Refresh all under data, the operation ended in error.我尝试了一次,但是一旦源文件被替换并单击数据下的全部刷新,操作就以错误结束。 Any ideas?有任何想法吗?

You can use Power Query in that scenario.您可以在这种情况下使用 Power Query。 Depending on the exact circumstances, you could根据具体情况,你可以

  • Get data from Folder从文件夹中获取数据
  • Filter the folder to show only files that contain '.xls' in the file name过滤文件夹以仅显示文件名中包含“.xls”的文件

If after that you still have more than one file, sort them by date modified and keep only the newest one.如果在那之后您仍然有多个文件,请按修改日期对它们进行排序并仅保留最新的文件。

Then process that one remaining file.然后处理剩下的一个文件。

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

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