简体   繁体   中英

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. that i can change as per my need.

So, I want a formula like =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

PS: Adding underscore is mandatory.

You need to use the INDIRECT worksheet function.

Try this:

  1. In A1 enter A2
  2. In A2 enter 5
  3. In B1 enter =INDIRECT(A1)

B1 should have the value of 5 now.

间接

You just need to make sure that the string inside INDIRECT is valid in your case.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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