简体   繁体   English

Excel 中基于单元格引用引用另一个 Excel 文件的公式

[英]Formula in Excel that references another Excel file based on cell reference

I want to make a formula that references a cell in another excel file.我想创建一个引用另一个 excel 文件中的单元格的公式。 I have figured that out as below:我已经想通了如下:

='C:\Users\17\Desktop\[JAN-11 2011.xlsx]1'!$H$44

But as the cell L1 in this worksheet is Data cell set to month so it show current month so I want to be able to do something as below:但是由于此工作表中的单元格 L1 的数据单元格设置为月份,因此它显示当前月份,因此我希望能够执行以下操作:

='C:\Users\17\Desktop\[&L1& 2011.xlsx]1'!$H$44

but this is not working.但这不起作用。 How do I get this function to work off of the cell L1?我如何让这个函数在单元格 L1 上工作?

尝试像这样使用字符串连接:

='C:\Users\17\Desktop[' & TEXT(L1, "mmm-dd") & ' 2011.xlsx]1'!$H$44

我认为您可以使用 Lance Roberts 的建议,但将其包含在INDIRECT()函数中,如下所示: =INDIRECT('C:\\Users\\17\\Desktop[' & L1 & ' 2011.xlsx]1'!$H$44)

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

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