Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 150
Default Dynamic sheet reference in Name formula

Hi,

The name "CurrentMonth" is defined using the following formula:

=OFFSET('Apr-10'!$H$5,0,0,COUNTA('Apr-10'!$H$5:$H$500),20)

The workbook has 12 sheets with names from Apr-10 to Mar-11. These
will be placed in a data validation list in cell A1

Requirement: The sheet name in the formula to dynamically change with
the value selected in cell A1. ie if the value in cell A1 is Jun-10
then the sheet name i the formula should be replaced with Jun-10. Is
this possible or any other way to achieve this?

Thanks in advance for the help.

Regards.
Raj
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 834
Default Dynamic sheet reference in Name formula

Try

=OFFSET(INDIRECT("'"&$A$1&"'!$H$5"),0,0,COUNTA(IND IRECT("'"&$A$1&"'!$H$5:$H$500")),20)

--

HTH

Bob

"Raj" wrote in message
...
Hi,

The name "CurrentMonth" is defined using the following formula:

=OFFSET('Apr-10'!$H$5,0,0,COUNTA('Apr-10'!$H$5:$H$500),20)

The workbook has 12 sheets with names from Apr-10 to Mar-11. These
will be placed in a data validation list in cell A1

Requirement: The sheet name in the formula to dynamically change with
the value selected in cell A1. ie if the value in cell A1 is Jun-10
then the sheet name i the formula should be replaced with Jun-10. Is
this possible or any other way to achieve this?

Thanks in advance for the help.

Regards.
Raj



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
Lookup formula with dynamic sheet reference William Blake Excel Worksheet Functions 5 August 14th 08 12:23 AM
Dynamic sheet reference steve Excel Discussion (Misc queries) 3 December 16th 07 10:28 PM
Dynamic reference to another sheet? Mitch Excel Worksheet Functions 3 May 16th 06 04:36 PM
Dynamic reference to a sheet xisque Excel Worksheet Functions 4 June 20th 05 09:04 PM
Dynamic reference to sheet name Darien0104 Excel Worksheet Functions 1 May 8th 05 09:41 AM


All times are GMT +1. The time now is 04:29 AM.

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

About Us

"It's about Microsoft Excel"