0
votes

I have the following formula

=INDIRECT("'"&$A$1&"'!"&"D3")

in A1 I have the name of another sheet and this correctly goes to that sheet, cell D3 and return the value. Now I'd like to drag this formula on the cell below and be automatically updated to

=INDIRECT("'"&$A$1&"'!"&"E3")

then drag below again and have

=INDIRECT("'"&$A$1&"'!"&"F3")

and so on...

is it possible or I have to manually change the cell? Is there another way?

thanks

1
You want to drag down and change the column reference? - Scott Craner
yes, excatly! thanks - kiwi1342

1 Answers

3
votes

To change the column reference as the formula is dragged down, use ADDRESS() which returns a string:

=INDIRECT("'" & $A$1 & "'!"&ADDRESS(3,ROW(4:4)))

The ROW() will be Dynamic and refer first to the 4th Column, or "D" and as it is dragged down it will refer to the 5th then the 6th and so forth.