Autofill Dynamic Range

  • Thread starter Thread starter Fester
  • Start date Start date
F

Fester

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
 
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)
 
Back
Top