简体   繁体   English

在单元格引用字符串内连接excel单元格字符串

[英]Concatenate excel cell string within cell reference string

I am struggling to figure out a way to concatenate a cell value into the format below when referencing to another excel spreadsheets cell value. 我正在努力寻找一种在引用另一个Excel电子表格单元格值时将单元格值连接为以下格式的方法。

Example: ='C:\\Test\\TestA.xls'!$A$25 例如:='C:\\ Test \\ TestA.xls'!$ A $ 25

I would like to have TestA to be represented, for example, by a cell value within the current excel spreadsheet. 我想让TestA用例如当前excel电子表格中的单元格值表示。 Here is what I thought would of worked: 这是我认为可行的方法:

='C:\\Test\\'+B2+'.xls'!$A$25 ='C:\\ Test \\'+ B2 +'。xls'!$ A $ 25

Is this possible with this type of formatting? 这种格式是否可行?

Any suggestions would be appreciated. 任何建议,将不胜感激。 Thanks 谢谢

Copied from a Comment by @Dean MacGregor : @Dean MacGregor的评论复制:

You can't refer to another Excel sheet and have it work unless that other Excel sheet is open. 除非打开另一个Excel工作表,否则您不能引用另一个Excel工作表并使它工作。

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

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