Dynamic cell reference using INDIRECT..

J

Jason.Alden.Benoit

Hi,

Is there a way to take this formula "=INDIRECT("'"&$P$3&"'!X9")" and
make X9 dynamic upon copying to other cells? For P3 I only need to
remove the $'s.

Thanks!

- Alden
 
P

Pranav Vaidya

Try this one..

=INDIRECT("'"&$P$3&"'!"&ADDRESS(ROW(),COLUMN()))

Hope this helps.
 
J

Jason.Alden.Benoit

I should have been more specific, I need the cell reference to be
relative to the cell, but it will likely not match. Instead of ROW()
and COLUMN() I entered in the correct number, and that returned the
correct value, however it did not let me copy it dynamically. Thank
you for your help so far.
 
H

Harlan Grove

Is there a way to take this formula "=INDIRECT("'"&$P$3&"'!X9")" and
make X9 dynamic upon copying to other cells? For P3 I only need to
remove the $'s.

=INDIRECT("'"&$P$3&"'!"&CELL("Address",X9))

or if you want it internationalization-safe,

=INDIRECT(ADDRESS(ROW(X9),COLUMN(X9),,,$P$3))
 
J

Jason.Alden.Benoit

=INDIRECT("'"&$P$3&"'!"&CELL("Address",X9))

or if you want it internationalization-safe,

=INDIRECT(ADDRESS(ROW(X9),COLUMN(X9),,,$P$3))

I am not sure what internationalization safe could mean except if
referring to another language version of excel. This did the trick, I
still have a lot of editing while copy/pasting to do but this will
make it much better! Thanks!
 
Top