Share via

autofill sheet reference

Anonymous
2011-04-19T23:52:14+00:00

Hello,

I am trying to autofill a column referencing different sheets as opposed to different cells.

I need:

='sheet 1'!!$B$11

='sheet 2'!!$B$11

='sheet 3'!!$B$11

... and so on

As opposed to what I continue to get:

='sheet 1'!!$B$11

='sheet 1'!!$B$12

='sheet 1'!!$B$13

I have tried using the formula =INDIRECT("sheet 1"&ROW(B11)&"!$B$11") that I found on another forum, but I keep on getting #REF.

Please Help!

Jason

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

HansV 462.6K Reputation points
2011-04-21T00:08:31+00:00

In cell A5, enter the formula

=INDIRECT("'sheet " & (ROW()-ROW($A$5)+1) & "'!B11")

then fill down to A7 (or further down if needed). Please note that there is a single quote (apostrophe) before the word sheet and and also before the exclamation mark ! in the formula.

Was this answer helpful?

0 comments No comments

14 additional answers

Sort by: Most helpful
  1. Anonymous
    2011-04-21T06:29:03+00:00

    That worked...Thank you!

    I have one problem, when I try to duplicate the sheet they become: sheet (1), sheet (2), Sheet (3) etc.

    That code won't recognixe the numbers in the bracket. Thoughts? IS there a way to duplicate the sheets (I need aprox 500 of them) without the brackets or can we make the code recognize the number in the bracket?

    Also, how would I make

    =INDIRECT("'sheet " & (ROW()-ROW($A$5)+1) & "'!B11") a hyperlink to the cell B11 on the corresponding sheet?

    Thank you so much for your help!!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2011-04-20T23:55:16+00:00

    The formulas:

    ='sheet 1'!!$B$11

    ='sheet 2'!!$B$11

    ='sheet 3'!!$B$11

    go into the cells a5, a6, and a7 on the master file.

    The reference information is coming from cell b11 on sheet 1, 2, 3 etc.

    Does this help?

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2011-04-20T23:50:26+00:00

    The data required is in the 11th row of column b.

    Was this answer helpful?

    0 comments No comments
  4. HansV 462.6K Reputation points
    2011-04-20T07:51:29+00:00

    Assuming that the first formula is in row 13, try

    =INDIRECT("'sheet" & (ROW()-ROW($A$13)+1) & "'!B11")

    If the first formula is in another row, adjust the row number in $A$13 accordingly.

    Was this answer helpful?

    0 comments No comments