Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic cell access

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.

like image 464
Yoot Avatar asked Sep 22 '11 13:09

Yoot


2 Answers

Use the INDIRECT function:

=INDIRECT("A" & (1+2))
=INDIRECT("B" & ROW(A1)*10)
like image 194
Excellll Avatar answered Nov 16 '22 01:11

Excellll


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

like image 32
brettdj Avatar answered Nov 16 '22 00:11

brettdj