PC Review


Reply
Thread Tools Rate Thread

Autofill Dynamic Range

 
 
Fester
Guest
Posts: n/a
 
      8th Dec 2008
I'm creating a Unique filter of users starting from I11. This list
can be from 1-20. In J11, I'm creating a average time spent for each
user.

How do I create an autofill range that only fills as long as the
Unique filter range?

I know I could use Range("J11:J" & counta(I11:I30).FillDown, but
that's not working. How do I tell it to start in cell j11 and count
down the number of cells filled in range I11:I30?

Thank you in advance for any help.

Brendon
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      8th Dec 2008
Maybe...

Range("J11:J" & (11 + counta(I11:I30) - 1)

If there's nothing else in column J, I like to use:

dim myRng as range
set myrng = .range("J11:J" & .cells(.rows.count,"I").end(xlup).row)



Fester wrote:
>
> I'm creating a Unique filter of users starting from I11. This list
> can be from 1-20. In J11, I'm creating a average time spent for each
> user.
>
> How do I create an autofill range that only fills as long as the
> Unique filter range?
>
> I know I could use Range("J11:J" & counta(I11:I30).FillDown, but
> that's not working. How do I tell it to start in cell j11 and count
> down the number of cells filled in range I11:I30?
>
> Thank you in advance for any help.
>
> Brendon


--

Dave Peterson
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a dynamic range based on criteria, within a dynamic range, and passing it to a function rajansood@hotmail.com Microsoft Excel Programming 0 9th Oct 2007 05:22 PM
Dynamic range for autofill macro =?Utf-8?B?SmltIEc=?= Microsoft Excel Misc 2 23rd Apr 2007 05:46 AM
making autofill range dynamic sonang Microsoft Excel Programming 0 1st Sep 2004 10:59 PM
Re: autofill with dynamic range Bernie Deitrick Microsoft Excel Programming 0 16th Sep 2003 02:55 PM
autofill with dynamic range again a Microsoft Excel Programming 0 16th Sep 2003 12:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:10 AM.