ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Automatically change sequential worksheet names in formulas (https://www.excelbanter.com/excel-worksheet-functions/176332-automatically-change-sequential-worksheet-names-formulas.html)

Magnum

Automatically change sequential worksheet names in formulas
 
My question can best be explained by using an example:

I have several worksheets with the same format labeled "week 1" through
"week 52" in sequential order. I have another worksheet with the same column
headings as the previous mentioned worksheets. I want to link a cell from
each "week #" worksheet to the summary worksheet in sequential cells.
Basically summarizing data to a single worksheet. I know I can individually
link the cells from each separate worksheet but isn't there an easier way?
Thanks, I appreciate everyone's input.

Pete_UK

Automatically change sequential worksheet names in formulas
 
Let's assume that the headings in your summary sheet are in row 1,
with "week 1" in cell B1, and that you want to return data from cell
D4 in each of the sheets. Put this formula in B2 of the summary sheet:

=INDIRECT("'"&B$1&"'!D4")

Copy this across row 2 as required, to get the data from the weekly
sheets. If you need to copy it down, then the D4 will need to be
outside the quotes.

Hope this helps.

Pete

On Feb 11, 5:42*pm, Magnum wrote:
My question can best be explained by using an example:

I have several worksheets with the same format labeled "week 1" through
"week 52" in sequential order. *I have another worksheet with the same column
headings as the previous mentioned worksheets. *I want to link a cell from
each "week #" worksheet to the summary worksheet in sequential cells. *
Basically summarizing data to a single worksheet. *I know I can individually
link the cells from each separate worksheet but isn't there an easier way?
Thanks, I appreciate everyone's input.



Magnum

Automatically change sequential worksheet names in formulas
 
THANK YOU!!!!!! It worked perfectly except for copying the forumla down, but
I modified the "d4" reference using your technique and it works exactly the
way I was wanting. Thanks again.

te_UK" wrote:

Let's assume that the headings in your summary sheet are in row 1,
with "week 1" in cell B1, and that you want to return data from cell
D4 in each of the sheets. Put this formula in B2 of the summary sheet:

=INDIRECT("'"&B$1&"'!D4")

Copy this across row 2 as required, to get the data from the weekly
sheets. If you need to copy it down, then the D4 will need to be
outside the quotes.

Hope this helps.

Pete

On Feb 11, 5:42 pm, Magnum wrote:
My question can best be explained by using an example:

I have several worksheets with the same format labeled "week 1" through
"week 52" in sequential order. I have another worksheet with the same column
headings as the previous mentioned worksheets. I want to link a cell from
each "week #" worksheet to the summary worksheet in sequential cells.
Basically summarizing data to a single worksheet. I know I can individually
link the cells from each separate worksheet but isn't there an easier way?
Thanks, I appreciate everyone's input.




Pete_UK

Automatically change sequential worksheet names in formulas
 
Glad to hear it - thanks for feeding back.

Pete

On Feb 11, 7:50*pm, Magnum wrote:
THANK YOU!!!!!! *It worked perfectly except for copying the forumla down, but
I modified the "d4" reference using your technique and it works exactly the
way I was wanting. *Thanks again.



te_UK" wrote:
Let's assume that the headings in your summary sheet are in row 1,
with "week 1" in cell B1, and that you want to return data from cell
D4 in each of the sheets. Put this formula in B2 of the summary sheet:


=INDIRECT("'"&B$1&"'!D4")


Copy this across row 2 as required, to get the data from the weekly
sheets. If you need to copy it down, then the D4 will need to be
outside the quotes.


Hope this helps.


Pete


On Feb 11, 5:42 pm, Magnum wrote:
My question can best be explained by using an example:


I have several worksheets with the same format labeled "week 1" through
"week 52" in sequential order. *I have another worksheet with the same column
headings as the previous mentioned worksheets. *I want to link a cell from
each "week #" worksheet to the summary worksheet in sequential cells. *
Basically summarizing data to a single worksheet. *I know I can individually
link the cells from each separate worksheet but isn't there an easier way?
Thanks, I appreciate everyone's input.- Hide quoted text -


- Show quoted text -




All times are GMT +1. The time now is 06:17 AM.

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