Help with formula fill down

C

comotoman

in sheet2 i have formulas that copy information from sheet3.
sheet3:sheet25 are all the same templates. How can I fill down the
formulas and have them change only the sheet name? All of the formulas
is allready locked with the $ sign except the sheet name.

a4='sheet 3'!$I$2
a5='sheet 4'!$I$2
a6='sheet 5'!$I$2

etc...
 
C

comotoman

Any ideas? It would be nice to fill and not have to type all the sheet
names.
 
J

Jonathan Cooper

I'm copying from a post I did the other day. I think you'll be able to use
this to solve your problem.

__________________________________________________________________

Not sure exactly what your trying to do but, this example will get you
started.

Sheet names: Data, January, February, etc...

On the Data sheet, in cell B1, you have the following formula

=INDIRECT(A1&"!A1")

This basically says take the text in A1 and concatenate it together with an
exclamation point and the reference A1. Result: =January!A1

This then looks at the January worksheet on cell A1.

Hope that helps.

ATK said:
I have a need to add text to a formula that references another cell.

Say on one worksheet, I have a column of text from January to December.
Also, I have worksheets named from January to December. I have
multiple cell references for each worksheet, but they are always the
same cell for each worksheet, i.e. January!A1, February!A1, etc.

How can I reference these cells without typing in the January! part (or
selecting them from each sheet). Ideally, I would like to be able to
point to a cell and effectively say add a cell reference to it and have
it return the value of that cell.
_____________________________________________________________________
 
B

bj

this looks like a good place for the indirect function
in A4 enter
=indirect("'sheet " &(row()-1) & "'!$I$2")
and copy down.

Note I assume it is sheet 10 and not sheet10
you will have to change the equation for the higher number sheets if it is
the latter
 
Top