Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 86
Default Change the starting and ending cell of a dynamic named range

I have a range called Labels1 that used to expand from A2 to A whatever.
Now, I have to change its functionality so that both the START and END can
change.

The old formula is this.
=OFFSET(Data!$A$2,1,0,COUNTIF(Data!$A:$A,"0"),1)
How do I change it so that $A$2 changes to a new start cell?

Thanks for your help.

Arlen
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 396
Default Change the starting and ending cell of a dynamic named range

What is the new start cell? That should be your first argument in the OFFSET
formula.

Adjust the second argument to get the correct number of rows offset starting
in your start cell.

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Arlen" wrote:

I have a range called Labels1 that used to expand from A2 to A whatever.
Now, I have to change its functionality so that both the START and END can
change.

The old formula is this.
=OFFSET(Data!$A$2,1,0,COUNTIF(Data!$A:$A,"0"),1)
How do I change it so that $A$2 changes to a new start cell?

Thanks for your help.

Arlen

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 86
Default Change the starting and ending cell of a dynamic named range

Wigi,

After rereading my post, I see my question was very muddy. Here's the whole
scenario:

I have a finite range A2:A42. Within that range, there are 3 ranges (for
instance, A2:A14, A15:A35, A36:A42).

Depending on user input, one of those ranges will have big numbers and the
other ranges will contain Zeroes. I need a dynamic range that starts at the
first non-zero and extends to the last non-zero. So Labels1 could either be
A2:A14, A15:A35 or A36:A42.

How do you do that?

"Wigi" wrote:

What is the new start cell? That should be your first argument in the OFFSET
formula.

Adjust the second argument to get the correct number of rows offset starting
in your start cell.

--
Wigi
http://www.wimgielis.be = Excel/VBA, soccer and music


"Arlen" wrote:

I have a range called Labels1 that used to expand from A2 to A whatever.
Now, I have to change its functionality so that both the START and END can
change.

The old formula is this.
=OFFSET(Data!$A$2,1,0,COUNTIF(Data!$A:$A,"0"),1)
How do I change it so that $A$2 changes to a new start cell?

Thanks for your help.

Arlen

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
Dynamic range where the reference cell can change hello Excel Discussion (Misc queries) 2 May 19th 08 10:11 PM
How to create a dynamic named range? Sunita Excel Discussion (Misc queries) 3 March 28th 08 07:47 PM
Dynamic Named Range [email protected] Excel Discussion (Misc queries) 0 November 20th 07 03:08 PM
Dynamic Named Range bountifulgrace Charts and Charting in Excel 1 April 6th 06 08:39 PM
Dynamic chart that displays a range starting today jimfrog Charts and Charting in Excel 2 March 23rd 06 06:36 PM


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