"THIS" Row Reference

J

jcottam

Hi there,

How do you reference the row a cell exists on (dynamic)?
ex: =sum(A"thisRow" + A2)

Thanks,

John Ryan
 
H

Harlan Grove

Chip Pearson wrote...
Use the ROW() function. E.g.,

=SUM(INDIRECT("A"&ROW())+A2)
....

If you're going to use INDIRECT, don't bother with a ROW call.

=INDIRECT("RC1",0)+A2

But don't bother with the volatile INDIRECT call. Use INDEX.

=INDEX(A:A,ROW())+A2

For that matter, given the wonders of Excel's implicit range indexing,
the following works with no function calls at all.

=A:A+A2
 
Top