[英]Cell Reference not working for a formula in Excel
I am using a formula =DARTSCRDE|StrikePrice.'2045033_0' works fine, But i want the code which in this case is 2045033 to be a cell value.我正在使用公式 =DARTSCRDE|StrikePrice.'2045033_0' 工作正常,但我希望在这种情况下为 2045033 的代码是单元格值。 that i can change as per my need.
我可以根据需要进行更改。
So, I want a formula like =DARTSCRDE|StrikePrice.'& A1 &"_0'".所以,我想要一个像 =DARTSCRDE|StrikePrice.'& A1 &"_0'" 这样的公式。 But this does not work?
但这不起作用? Any help on this?
对此有什么帮助吗?
Also tried "DARTSCRDE|StrikePrice!'" & A1 & "_0'" but did not work as well还尝试了“DARTSCRDE|StrikePrice!'” & A1 & “_0'” 但效果不佳
PS: Adding underscore is mandatory. PS:必须加下划线。
You need to use the INDIRECT
worksheet function.您需要使用
INDIRECT
工作表 function。
Try this:尝试这个:
A1
enter A2
A1
中输入A2
A2
enter 5
A2
中输入5
B1
enter =INDIRECT(A1)
B1
中输入=INDIRECT(A1)
B1
should have the value of 5
now. B1
现在应该有5
的值。
You just need to make sure that the string inside INDIRECT
is valid in your case.您只需要确保
INDIRECT
中的字符串在您的情况下有效。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.