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

I have a named range called "Range_1" which is set as:

=OFFSET(Total!$E$3,0,('Graph Data'!$J$2-1)*5+'Graph
Data'!$I$2-1,COUNTA(Total!$B:$B)-1,1)

It works fine, and essentially keeps the named range to the length of the
list of items I have on the "Total" page. Problem is, I want this same named
range to be able to pick the page it is supposed to be looking at based on a
text value entered into a cell.

If I use the formula "=ADDRESS(3,5,1,1,"Total")" then I get the answer
"Total!$E$3". I can manipluate this formula to give me the sheet I am
looking for to use in the offset (there are 13 in total).

If I combine the OFFSET formula with the ADDRESS formula, it won't work. I
thoght I could use a named range of :

=OFFSET(ADDRESS(3,5,1,1,"Total"),0,('Graph Data'!$J$2-1)*5+'Graph
Data'!$I$2-1,COUNTA(Total!$B:$B)-1,1)

to give me the same named range. But it does not work.
Does anyone know how I can achieve what I want?
Does anyone even know what I am talking about?!!!

Rich
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Named Ranges

Try it like this:

A1 = Total

=OFFSET(INDIRECT("'"&A1&"'!E3").........

--
Biff
Microsoft Excel MVP


"Rich" wrote in message
...
I have a named range called "Range_1" which is set as:

=OFFSET(Total!$E$3,0,('Graph Data'!$J$2-1)*5+'Graph
Data'!$I$2-1,COUNTA(Total!$B:$B)-1,1)

It works fine, and essentially keeps the named range to the length of the
list of items I have on the "Total" page. Problem is, I want this same
named
range to be able to pick the page it is supposed to be looking at based on
a
text value entered into a cell.

If I use the formula "=ADDRESS(3,5,1,1,"Total")" then I get the answer
"Total!$E$3". I can manipluate this formula to give me the sheet I am
looking for to use in the offset (there are 13 in total).

If I combine the OFFSET formula with the ADDRESS formula, it won't work.
I
thoght I could use a named range of :

=OFFSET(ADDRESS(3,5,1,1,"Total"),0,('Graph Data'!$J$2-1)*5+'Graph
Data'!$I$2-1,COUNTA(Total!$B:$B)-1,1)

to give me the same named range. But it does not work.
Does anyone know how I can achieve what I want?
Does anyone even know what I am talking about?!!!

Rich



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,091
Default Named Ranges

The ADDRESS function is returning a literal of the address. To use it as an
address you have to put it inside the INDIRECT function as in:

=OFFSET(INDIRECT(ADDRESS(3,5,1,1,"Total")),0,('Gra ph Data'!$J$2-1)*5+'Graph
Data'!$I$2-1,COUNTA(Total!$B:$B)-1,1)

Tyro

"Rich" wrote in message
...
I have a named range called "Range_1" which is set as:

=OFFSET(Total!$E$3,0,('Graph Data'!$J$2-1)*5+'Graph
Data'!$I$2-1,COUNTA(Total!$B:$B)-1,1)

It works fine, and essentially keeps the named range to the length of the
list of items I have on the "Total" page. Problem is, I want this same
named
range to be able to pick the page it is supposed to be looking at based on
a
text value entered into a cell.

If I use the formula "=ADDRESS(3,5,1,1,"Total")" then I get the answer
"Total!$E$3". I can manipluate this formula to give me the sheet I am
looking for to use in the offset (there are 13 in total).

If I combine the OFFSET formula with the ADDRESS formula, it won't work.
I
thoght I could use a named range of :

=OFFSET(ADDRESS(3,5,1,1,"Total"),0,('Graph Data'!$J$2-1)*5+'Graph
Data'!$I$2-1,COUNTA(Total!$B:$B)-1,1)

to give me the same named range. But it does not work.
Does anyone know how I can achieve what I want?
Does anyone even know what I am talking about?!!!

Rich



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
Named Ranges James Hamilton Excel Discussion (Misc queries) 1 March 15th 07 11:25 PM
Named ranges SheriTingle Excel Discussion (Misc queries) 2 February 14th 07 06:00 PM
named ranges UsGrant_75 Excel Worksheet Functions 2 June 23rd 06 01:38 AM
Like 123, allow named ranges, and print named ranges WP Excel Discussion (Misc queries) 1 April 8th 05 06:07 PM
Named Ranges Gary T Excel Worksheet Functions 2 December 27th 04 02:28 AM


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