简体   繁体   English

使用另一个Excel工作表单元格值动态更新Excel工作表的单元格值

[英]Dynamically update the cell value of an excel sheet with another excel sheet cell values

I have two excel sheets, Test.xlsx and Sample.xlsx.我有两个 excel 表,Test.xlsx 和 Sample.xlsx。 I'm referring the "B10"cell value in the Test.xlsx with the "C10" of Sample.xlsx using the formula "='C:\\Users\\Happy\\Desktop\\Work[Sample.xlsx]Sheet1'!C10" in the B10 of Test.xlsx file.我使用公式 "='C:\\Users\\Happy\\Desktop\\Work[Sample.xlsx]Sheet1'!C10" 引用 Test.xlsx 中的 "B10" 单元格值和 Sample.xlsx 的 "C10"在 Test.xlsx 文件的 B10 中。 Now I opened Sample.xlsx, edited C10 cell value, Saved it and Closed.现在我打开 Sample.xlsx,编辑 C10 单元格值,保存并关闭。 I then opened Test.xlsx and the cell value "B10" in the Test.xlsx will not update until I just re-open the Sample.xlsx.然后我打开了 Test.xlsx 并且 Test.xlsx 中的单元格值“B10”不会更新,直到我重新打开 Sample.xlsx。 Is there any way to just open Sample.xlsx, edit the C10 value and close it so that the value of the cell B10 in Test.xlsx will update with out re-opening the Sample.xlsx file.有什么方法可以打开 Sample.xlsx,编辑 C10 值并关闭它,以便 Test.xlsx 中单元格 B10 的值将更新,而无需重新打开 Sample.xlsx 文件。 Please advice.请指教。 Thank you.谢谢你。

I just tested this using Excel 2010 and two .xlsx files.我刚刚使用 Excel 2010 和两个 .xlsx 文件对此进行了测试。 With both files open (in the same instance of Excel, mind you), changing one and then switching to the other automatically shows the other with the change.打开这两个文件(在同一个 Excel 实例中,请注意),更改一个然后切换到另一个会自动显示另一个更改。

Then I tried what you said: Open source, make change, save and close, then open destination.然后我尝试了您所说的:开源,进行更改,保存并关闭,然后打开目标。 Same thing: the destination updated.同样的事情:目的地更新了。 The only caveat is that I first needed to hit the Enable Content button in the destination.唯一需要注意的是,我首先需要点击目标中的“启用内容”按钮。

Perhaps your Excel is set to manually update formulae?也许您的 Excel 设置为手动更新公式? In Excel 2010, it's on the Formulas ribbon, Calculation Options |在 Excel 2010 中,它位于公式功能区、计算选项 | Automatic.自动的。

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

相关问题 Excel:基于另一个工作表中的单元格值动态更改工作表标签 - Excel: Dynamically change sheet tag based on cell value in another sheet 如何动态获取另一个工作表中Excel工作表的特定单元格内容? - How to get specific cell contents of an Excel sheet at another sheet dynamically? 使用VBA将单元格值复制到Excel中的另一个工作表 - Copying Cell Value to another sheet in Excel with VBA 连接另一个工作表中的Excel单元格值 - Concatenate Excel cell value from another sheet Excel-从另一个工作表添加单元格值 - Excel - Add cell value from another sheet Excel:另一个工作表中单元格值的名称工作表选项卡 - Excel: Name sheet tab from cell value in another sheet 超链接到Excel中另一个工作表上的单元格 - Hyperlink to a cell on another sheet in Excel EXCEL:如果一个工作表中的一个单元格与另一个工作表中的一个单元格匹配,则在右侧打印该单元格 - EXCEL: If a cell in a sheet matches a cell in another Sheet, print the cell to the right 创建指向另一个 Excel 工作表单元格的链接,并查找最后一个单元格值 - create a link to another excel sheet cell with lookup for last cell value 将一个Excel工作表中的单元格绑定到另一个Excel工作表中的单元格 - Bind a cell in one Excel sheet to a cell in another
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM