Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default relative Named Ranges based on worksheet

I have a worksheet that uses named ranges in it's formulas.

Is there a way to set the named range to be realative to the curent sheet?

Example currently one named range is

B_Class_Desc=Sheet1!$AJ$3

what I would like to do is have something like this
B_Class_Desc=CurrentSheet!$AJ$3

But since CurrentSheet! is supported is there a way to simulate it?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default relative Named Ranges based on worksheet

Or just plain old =Indirect("A1")
Enter that using menu path Insert / Name / Define and it will refer to cell
A1 on whatever the current sheet is.

"Fr. Robert" wrote:

I have a worksheet that uses named ranges in it's formulas.

Is there a way to set the named range to be realative to the curent sheet?

Example currently one named range is

B_Class_Desc=Sheet1!$AJ$3

what I would like to do is have something like this
B_Class_Desc=CurrentSheet!$AJ$3

But since CurrentSheet! is supported is there a way to simulate it?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default relative Named Ranges based on worksheet

Thanks,

worked great

"William Horton" wrote:

Or just plain old =Indirect("A1")
Enter that using menu path Insert / Name / Define and it will refer to cell
A1 on whatever the current sheet is.

"Fr. Robert" wrote:

I have a worksheet that uses named ranges in it's formulas.

Is there a way to set the named range to be realative to the curent sheet?

Example currently one named range is

B_Class_Desc=Sheet1!$AJ$3

what I would like to do is have something like this
B_Class_Desc=CurrentSheet!$AJ$3

But since CurrentSheet! is supported is there a way to simulate it?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 96
Default relative Named Ranges based on worksheet

Try putting in the below using the menu path Insert / Name / Define:
=INDIRECT(ADDRESS(1,1,1,1,))
The above name will refer to cell A1 on whatever sheet it is placed in.

Hope this helps.

Bill Horton

"Fr. Robert" wrote:

I have a worksheet that uses named ranges in it's formulas.

Is there a way to set the named range to be realative to the curent sheet?

Example currently one named range is

B_Class_Desc=Sheet1!$AJ$3

what I would like to do is have something like this
B_Class_Desc=CurrentSheet!$AJ$3

But since CurrentSheet! is supported is there a way to simulate it?

Thanks

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default relative Named Ranges based on worksheet

Read to the end to assign to *all* sheets at the same time.

http://tinyurl.com/276jhl


--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Fr. Robert" wrote in message
...
I have a worksheet that uses named ranges in it's formulas.

Is there a way to set the named range to be realative to the curent sheet?

Example currently one named range is

B_Class_Desc=Sheet1!$AJ$3

what I would like to do is have something like this
B_Class_Desc=CurrentSheet!$AJ$3

But since CurrentSheet! is supported is there a way to simulate it?

Thanks




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default relative Named Ranges based on worksheet


"Fr. Robert" wrote:

I have a worksheet that uses named ranges in it's formulas.

Is there a way to set the named range to be realative to the curent sheet?

Example currently one named range is

B_Class_Desc=Sheet1!$AJ$3

what I would like to do is have something like this
B_Class_Desc=CurrentSheet!$AJ$3

But since CurrentSheet! is supported is there a way to simulate it?

Thanks


Possibly the simplest way to accomplish what you want is to define the named
range scoped to the current sheet e.g.

Sheet1!B_Class_Desc = Sheet1!$AJ$3

Note that you have to select the correct "Name Scope" in 2007, or preface
the range name with Sheet1! if you are creating it in the 2003 name define
dialog.
If you copy this sheet to the same or to another workbook, Any range names
created in this manner will be replicated into the new sheet and the
references changed to the new sheet name.

One issue with the use of Indirect($AJ$3) is that this creates a volatile
range name which will force recalculation of the range address and any cell
formula that uses it everytime the worksheet updates. Volatile range
addresses are just as bad as volatile functions in cell formulas.
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
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
Named formulas in CHOOSE need to be Relative references when paste bill ch Excel Worksheet Functions 2 April 10th 06 04:13 PM
Confused about relative references in named formulas [email protected] Excel Worksheet Functions 1 March 22nd 06 10:40 PM
Named SUM Formula with relative refernce(s) Werner Rohrmoser Excel Worksheet Functions 2 April 20th 05 04:56 PM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM


All times are GMT +1. The time now is 05:57 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"