简体   繁体   English

在两个Excel工作簿之间自动进行数据连接的最佳方法是什么?

[英]What is the best way to automate a data connection between two Excel workbooks?

I have two workbooks, with two tables that I want to be in sync. 我有两个工作簿,有两个要同步的表。 Right now, I have a VLOOKUP formula that requires the user to press Enter (inside the specific cell to update) and select the other file and the data is refreshed correctly. 现在,我有一个VLOOKUP公式,要求用户按Enter键(在要更新的特定单元格内)并选择另一个文件,然后正确刷新了数据。 Is there a solution that involves a better formula or VBA solution? 是否有涉及更好的公式或VBA解决方案的解决方案?

what I have so far: 我到目前为止所拥有的:

=VLOOKUP(B3,'C:\User\Desktop[xyz.xslm]Table'!B:E,2,FALSE)

other info: The two tables have the same column and row structure. 其他信息:两个表具有相同的列和行结构。

As explained here , you should combine data from multiple data sources with Power Query (feature in Excel). 正如解释在这里 ,你应该从电源查询(在Excel功能)多个数据源的数据。 It is an ETL(Extract-Transform-Load) tool extremely powerful. 它是一个非常强大的ETL(提取转换加载)工具。

You didn't mention your version of Excel. 您没有提到您的Excel版本。 Here is a solution that works in Excel 2016: In the workbook with the VLOOKUP, click the Data tab, click Edit links. 这是在Excel 2016中可用的解决方案:在带有VLOOKUP的工作簿中,单击“数据”选项卡,再单击“编辑”链接。 At bottom left there is a button, Startup Prompt. 左下角有一个“启动提示”按钮。 There you can select automatic update without prompting the user. 您可以在此处选择自动更新,而无需提示用户。 You don't even have to open the second workbook in order to sync. 您甚至不必打开第二个工作簿即可进行同步。

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

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