问题
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