开发者

Formula in Excel that references another Excel file based on cell reference

开发者 https://www.devze.com 2023-02-05 16:56 出处:网络
I want to make a formula that references a cell in another excel file.I have figured that out as开发者_JAVA技巧 below:

I want to make a formula that references a cell in another excel file. I have figured that out as开发者_JAVA技巧 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:

='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?


I think you could use Lance Roberts suggestion, but include it in a INDIRECT() function, like this: =INDIRECT('C:\Users\17\Desktop[' & L1 & ' 2011.xlsx]1'!$H$44)


Try using string concatenation like so:

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

精彩评论

暂无评论...
验证码 换一张
取 消