Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Dynamic range using partial column?

Hi,

I'm trying to create a dynamic range (to accommodate various numbers of
elements) but the selection of cells I want to use is not in a column by
itself.

This means I can't use:

=offset(Sheet1!$a$1,0,0,counta(sheet1!$a:$a)-1,1)

because the counta() figures out all the entries in the A column, even
though all I want it to return is the contiguous block of cells from, say, A2
to A23. There is stuff in the cells below A23 so that seems to throw it off.

Any ideas on how to fix this or get around it?

TIA.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 281
Default Dynamic range using partial column?

Hi,

=offset(Sheet1!$a$1,0,0,counta(offset(sheet1!$a$1, 0,0,50,1),1)

it works for 50 line

Thanks,
--
Farhad Hodjat


"Donal P" wrote:

Hi,

I'm trying to create a dynamic range (to accommodate various numbers of
elements) but the selection of cells I want to use is not in a column by
itself.

This means I can't use:

=offset(Sheet1!$a$1,0,0,counta(sheet1!$a:$a)-1,1)

because the counta() figures out all the entries in the A column, even
though all I want it to return is the contiguous block of cells from, say, A2
to A23. There is stuff in the cells below A23 so that seems to throw it off.

Any ideas on how to fix this or get around it?

TIA.

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
summing name range in the same column with Dynamic name ranges Jeff Excel Worksheet Functions 8 September 24th 06 05:19 AM
Searching for partial text match in range [email protected] Excel Worksheet Functions 3 September 12th 06 05:58 AM
Multi-Column Dynamic Named Range...Is there an easier way? Ken Johnson Excel Worksheet Functions 6 April 23rd 06 01:54 AM
Dynamic column chart - auto sort on data range jimfrog Charts and Charting in Excel 0 March 29th 06 02:45 PM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM


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