简体   繁体   English

单元格参考不适用于 Excel 中的公式

[英]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:尝试这个:

  1. In A1 enter A2A1中输入A2
  2. In A2 enter 5A2中输入5
  3. In 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.

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