Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Changing worksheet name within a formula (automatically)

Hello please help,

I have a summary worksheet with a formula taking data from another
worksheet. Simply ='worksheet'!G34. At certain times of year I have to change
the worksheet name to equal the current period in all of the cells in the
summary sheet. I have worksheets called "promotional detail LE01 2007" all
the way through to LE12.
I have in the summary sheet as a header LE01 which changes by a cover sheet.

Is there a way I can have the formula so it changes the worksheet name to
correspond with the header.

E.G cell A1 = LE01 cell A2 = 2007
formula ='Promotional Detail LE09 2007'!G34

Is there a way so that the end of the worksheet name can equal cell a1 and a1.
I have tried the following but it is not working please help.

=INDIRECT("Promotional Detail "&A1&" "&A2&"'!G34")

Many thanks in advance





  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9,101
Default Changing worksheet name within a formula (automatically)

It looks like you are missing a single quote at the beginning of the
worksheet name

=INDIRECT("'Promotional Detail "&A1&" "&A2&"'!G34")


"dave" wrote:

Hello please help,

I have a summary worksheet with a formula taking data from another
worksheet. Simply ='worksheet'!G34. At certain times of year I have to change
the worksheet name to equal the current period in all of the cells in the
summary sheet. I have worksheets called "promotional detail LE01 2007" all
the way through to LE12.
I have in the summary sheet as a header LE01 which changes by a cover sheet.

Is there a way I can have the formula so it changes the worksheet name to
correspond with the header.

E.G cell A1 = LE01 cell A2 = 2007
formula ='Promotional Detail LE09 2007'!G34

Is there a way so that the end of the worksheet name can equal cell a1 and a1.
I have tried the following but it is not working please help.

=INDIRECT("Promotional Detail "&A1&" "&A2&"'!G34")

Many thanks in advance





  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Changing worksheet name within a formula (automatically)

Your formula worked fine for me.

Are you sure you have the names of the sheets correct (maybe a trailing
space--or multiple internal spaces)???

If you're sure you have it right, what does not working mean?

dave wrote:

Hello please help,

I have a summary worksheet with a formula taking data from another
worksheet. Simply ='worksheet'!G34. At certain times of year I have to change
the worksheet name to equal the current period in all of the cells in the
summary sheet. I have worksheets called "promotional detail LE01 2007" all
the way through to LE12.
I have in the summary sheet as a header LE01 which changes by a cover sheet.

Is there a way I can have the formula so it changes the worksheet name to
correspond with the header.

E.G cell A1 = LE01 cell A2 = 2007
formula ='Promotional Detail LE09 2007'!G34

Is there a way so that the end of the worksheet name can equal cell a1 and a1.
I have tried the following but it is not working please help.

=INDIRECT("Promotional Detail "&A1&" "&A2&"'!G34")

Many thanks in advance


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Changing worksheet name within a formula (automatically)

Try
=INDIRECT("'Promotional Detail"&" "&A1&" "&B1&"'!G34")
Before the P we have " then '
Before the G we have " then ' followed by !
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"dave" wrote in message
...
Hello please help,

I have a summary worksheet with a formula taking data from another
worksheet. Simply ='worksheet'!G34. At certain times of year I have to
change
the worksheet name to equal the current period in all of the cells in the
summary sheet. I have worksheets called "promotional detail LE01 2007" all
the way through to LE12.
I have in the summary sheet as a header LE01 which changes by a cover
sheet.

Is there a way I can have the formula so it changes the worksheet name to
correspond with the header.

E.G cell A1 = LE01 cell A2 = 2007
formula ='Promotional Detail LE09 2007'!G34

Is there a way so that the end of the worksheet name can equal cell a1 and
a1.
I have tried the following but it is not working please help.

=INDIRECT("Promotional Detail "&A1&" "&A2&"'!G34")

Many thanks in advance







  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,388
Default Changing worksheet name within a formula (automatically)

It works brilliant thank you very much for your help extremely useful.

Thanks again

Dave


"Dave Peterson" wrote:

Your formula worked fine for me.

Are you sure you have the names of the sheets correct (maybe a trailing
space--or multiple internal spaces)???

If you're sure you have it right, what does not working mean?

dave wrote:

Hello please help,

I have a summary worksheet with a formula taking data from another
worksheet. Simply ='worksheet'!G34. At certain times of year I have to change
the worksheet name to equal the current period in all of the cells in the
summary sheet. I have worksheets called "promotional detail LE01 2007" all
the way through to LE12.
I have in the summary sheet as a header LE01 which changes by a cover sheet.

Is there a way I can have the formula so it changes the worksheet name to
correspond with the header.

E.G cell A1 = LE01 cell A2 = 2007
formula ='Promotional Detail LE09 2007'!G34

Is there a way so that the end of the worksheet name can equal cell a1 and a1.
I have tried the following but it is not working please help.

=INDIRECT("Promotional Detail "&A1&" "&A2&"'!G34")

Many thanks in advance


--

Dave Peterson



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Changing worksheet name within a formula (automatically)

I think you meant this note for Joel and Bernard. They both caught the missing
leading apostrophe.

But I bet that they're both glad you got it working.

dave wrote:

It works brilliant thank you very much for your help extremely useful.

Thanks again

Dave

"Dave Peterson" wrote:

Your formula worked fine for me.

Are you sure you have the names of the sheets correct (maybe a trailing
space--or multiple internal spaces)???

If you're sure you have it right, what does not working mean?

dave wrote:

Hello please help,

I have a summary worksheet with a formula taking data from another
worksheet. Simply ='worksheet'!G34. At certain times of year I have to change
the worksheet name to equal the current period in all of the cells in the
summary sheet. I have worksheets called "promotional detail LE01 2007" all
the way through to LE12.
I have in the summary sheet as a header LE01 which changes by a cover sheet.

Is there a way I can have the formula so it changes the worksheet name to
correspond with the header.

E.G cell A1 = LE01 cell A2 = 2007
formula ='Promotional Detail LE09 2007'!G34

Is there a way so that the end of the worksheet name can equal cell a1 and a1.
I have tried the following but it is not working please help.

=INDIRECT("Promotional Detail "&A1&" "&A2&"'!G34")

Many thanks in advance


--

Dave Peterson


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Automatically changing Year archergirl2000 Excel Discussion (Misc queries) 3 May 15th 06 08:59 PM
Automatically changing link. How? sgkelly Excel Discussion (Misc queries) 2 April 13th 06 06:36 PM
Formula automatically changing cell references Nina Excel Worksheet Functions 1 February 8th 06 09:55 PM
Changing a Worksheet Reference Formula using a drop down box DaveyC4S Excel Discussion (Misc queries) 1 December 9th 05 01:06 PM
Can inserted rows automatically include existing worksheet formula tgdavis Excel Discussion (Misc queries) 2 September 20th 05 09:08 PM


All times are GMT +1. The time now is 05:37 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"