Dynamic cell access

亡梦爱人 提交于 2019-12-06 17:14:03

问题


My question may seem quite simple but I haven't found the answer yet.

In excel, I would like to access a cell with a dynamic row number.

Example 1 : cell A(1+2)
Example 2 : cell B(ROW(A1)*10)

What is the syntax for this ?

Thanks.


回答1:


Use the INDIRECT function:

=INDIRECT("A" & (1+2))
=INDIRECT("B" & ROW(A1)*10)



回答2:


If by cell B(ROW(A1)*10) you meant if A1 was 3 then return the value in B30 ,ie B(3*10)

then you want =INDIRECT("B" &A1*10)

=INDIRECT("B" & ROW(A1)*10) will always return cell B10 as ROW(A1) always =1



来源:https://stackoverflow.com/questions/7515250/dynamic-cell-access

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!