#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default NUmber of Columns

Hi, I have a named range in which I have some values. However this range will
be changing all the time. Maybe will increase in number of colums and rows
maybe decrease depending on the inputs of the user.

How can I make it so that the range remains named "Data" and changes in size
when the user inputs values?


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default NUmber of Columns

=OFFSET(summary!$A1,,,COUNTA(summary!$A:$A),COUNTA (summary!$1:$1))

This works PROVIDING cells in Column A and row 1 have no embedded blanks.
Also assumes A is longest column.

Change "Summary" as needed


"M&M" wrote:

Hi, I have a named range in which I have some values. However this range will
be changing all the time. Maybe will increase in number of colums and rows
maybe decrease depending on the inputs of the user.

How can I make it so that the range remains named "Data" and changes in size
when the user inputs values?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default NUmber of Columns

http://www.contextures.com/xlNames01.html#Dynamic


--
Regards,

Peo Sjoblom


"M&M" wrote in message
...
Hi, I have a named range in which I have some values. However this range
will
be changing all the time. Maybe will increase in number of colums and rows
maybe decrease depending on the inputs of the user.

How can I make it so that the range remains named "Data" and changes in
size
when the user inputs values?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default NUmber of Columns

Use a defined named range that is self adjusting
insertnamedefinename it as desired such as myrnge
in the refers to use something like this
=offset($a$1,0,0,counta($a:$a),12)
look in the help index for OFFSET for more info

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"M&M" wrote in message
...
Hi, I have a named range in which I have some values. However this range
will
be changing all the time. Maybe will increase in number of colums and rows
maybe decrease depending on the inputs of the user.

How can I make it so that the range remains named "Data" and changes in
size
when the user inputs values?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 33
Default NUmber of Columns



Thank you so much to all of you!!
Fast response! Now im sure ill have more questions so please stay tuned if u
can

"Don Guillett" wrote:

Use a defined named range that is self adjusting
insertnamedefinename it as desired such as myrnge
in the refers to use something like this
=offset($a$1,0,0,counta($a:$a),12)
look in the help index for OFFSET for more info

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"M&M" wrote in message
...
Hi, I have a named range in which I have some values. However this range
will
be changing all the time. Maybe will increase in number of colums and rows
maybe decrease depending on the inputs of the user.

How can I make it so that the range remains named "Data" and changes in
size
when the user inputs values?






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 663
Default NUmber of Columns

Hi,

Assuming that you have a range containing two rows and two columns and you
have named the range as DATA. Now when you add rows or columns, you must add
those columns and Rows within the named range.

This way the "Refer to:" text box, in the Define Name dialog will
automatically take the relative refernce of your modified cell range.

Challa Prabhu

"M&M" wrote:

Hi, I have a named range in which I have some values. However this range will
be changing all the time. Maybe will increase in number of colums and rows
maybe decrease depending on the inputs of the user.

How can I make it so that the range remains named "Data" and changes in size
when the user inputs values?


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
number of columns ekkeindoha Excel Discussion (Misc queries) 4 July 8th 07 03:31 PM
Number of columns Duplex Excel Discussion (Misc queries) 3 October 20th 06 02:02 PM
Max number of columns? Al Excel Discussion (Misc queries) 1 March 17th 06 11:46 AM
Number of Columns Pedro Mestre Excel Discussion (Misc queries) 2 October 20th 05 11:24 AM
Number of columns ? Toosje Excel Worksheet Functions 2 March 16th 05 11:41 AM


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