ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help with formula fill down (https://www.excelbanter.com/excel-discussion-misc-queries/48379-help-formula-fill-down.html)

comotoman

Help with formula fill down
 

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...


--
comotoman
------------------------------------------------------------------------
comotoman's Profile: http://www.excelforum.com/member.php...o&userid=27292
View this thread: http://www.excelforum.com/showthread...hreadid=472767


comotoman


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


--
comotoman
------------------------------------------------------------------------
comotoman's Profile: http://www.excelforum.com/member.php...o&userid=27292
View this thread: http://www.excelforum.com/showthread...hreadid=472767


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" wrote:


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.


--
ATK
------------------------------------------------------------------------
ATK's Profile: http://www.excelforum.com/member.php...o&userid=27662
View this thread: http://www.excelforum.com/showthread...hreadid=471785


__________________________________________________ ___________________

"comotoman" wrote:


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...


--
comotoman
------------------------------------------------------------------------
comotoman's Profile: http://www.excelforum.com/member.php...o&userid=27292
View this thread: http://www.excelforum.com/showthread...hreadid=472767



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

"comotoman" wrote:


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...


--
comotoman
------------------------------------------------------------------------
comotoman's Profile: http://www.excelforum.com/member.php...o&userid=27292
View this thread: http://www.excelforum.com/showthread...hreadid=472767



JE McGimpsey

One way:

A4: =INDIRECT("'sheet " & ROW()-1 & "'!I2")

In article ,
comotoman
wrote:

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



All times are GMT +1. The time now is 10:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com