Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Andibevan
 
Posts: n/a
Default Problem with Dynamic Named Ranges

Hi All,

I am having problems with dynamic named ranges.

On my table I have defect ID's (numerical) running from a2:a200 and the
title"Defect ID" in cell A1

I am using the following formula to dynamically name a range:-

=OFFSET($A$1,0,0,COUNT($A:$A),1)

Will this format of offset select A1:A200 as the named range or A2:200?

From my understanding you can't physically select a dynamically named range
so it is hard to tell what it is selecting

Thanks

Andi


  #2   Report Post  
arno
 
Posts: n/a
Default

Hi Andibevan,

From my understanding you can't physically select a dynamically named
range so it is hard to tell what it is selecting


you _can_ see the range when editing the formula in (translated from
german):
Insert/Name/Define select your name and place the cursor in the formula
"refers to" at the bottom, then you will see "ants" running around your
range (wow, good english...)

otherwise run a little makro to higlight "myrange"

Sub Makro1()
Application.Goto Reference:="myrange"
End Sub

arno

  #3   Report Post  
Roger Govier
 
Posts: n/a
Default

Hi Andi

It would be A1:A200 provided there are no gaps in the data. Count would
return 199, as it would ignore the text in A1.

When you use InsertNameDefine, at the end of the white pane Refers
to, there is a small icon. Click this and it will show you the range
that would be selected by the criterium set.

Regards

Roger Govier



Andibevan wrote:

Hi All,

I am having problems with dynamic named ranges.

On my table I have defect ID's (numerical) running from a2:a200 and the
title"Defect ID" in cell A1

I am using the following formula to dynamically name a range:-

=OFFSET($A$1,0,0,COUNT($A:$A),1)

Will this format of offset select A1:A200 as the named range or A2:200?

From my understanding you can't physically select a dynamically named range
so it is hard to tell what it is selecting

Thanks

Andi




  #4   Report Post  
Duke Carey
 
Posts: n/a
Default

Press the F5 key, type in your dynamic range name, click on OK, and Excel
will select the range.

In your case, your defined range will NOT INCLUDE the last number in the
list. Either change the offset to reference cell A2, or add 1 to the
COUNT(A:A)


"Andibevan" wrote:

Hi All,

I am having problems with dynamic named ranges.

On my table I have defect ID's (numerical) running from a2:a200 and the
title"Defect ID" in cell A1

I am using the following formula to dynamically name a range:-

=OFFSET($A$1,0,0,COUNT($A:$A),1)

Will this format of offset select A1:A200 as the named range or A2:200?

From my understanding you can't physically select a dynamically named range
so it is hard to tell what it is selecting

Thanks

Andi



  #5   Report Post  
Andibevan
 
Posts: n/a
Default

Thanks Guys - much appreciated.

"Duke Carey" wrote in message
...
Press the F5 key, type in your dynamic range name, click on OK, and Excel
will select the range.

In your case, your defined range will NOT INCLUDE the last number in the
list. Either change the offset to reference cell A2, or add 1 to the
COUNT(A:A)


"Andibevan" wrote:

Hi All,

I am having problems with dynamic named ranges.

On my table I have defect ID's (numerical) running from a2:a200 and the
title"Defect ID" in cell A1

I am using the following formula to dynamically name a range:-

=OFFSET($A$1,0,0,COUNT($A:$A),1)

Will this format of offset select A1:A200 as the named range or A2:200?

From my understanding you can't physically select a dynamically named

range
so it is hard to tell what it is selecting

Thanks

Andi







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
How do I find all named ranges in VB.NET? John Brock Excel Discussion (Misc queries) 5 September 2nd 05 04:39 PM
Named Ranges shown (or not shown) as blue means what? wdeleo Excel Worksheet Functions 0 July 8th 05 01:40 PM
Indirect and dynamic ranges Sam Excel Worksheet Functions 3 January 24th 05 07:01 AM
Problem with graph ranges No Such Luck Charts and Charting in Excel 6 December 3rd 04 01:09 PM
Named dynamic ranges, copied worksheets and graph source data WP Charts and Charting in Excel 1 November 28th 04 05:19 PM


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