Fill-Down Problems! Quick help needed

Zakkaroo

Active Member
Joined
Jul 6, 2009
Messages
383
I need excel to fill down for me in the following manner:

A2 to A12 all equal 2011-01
A13 to A23 all equal 2011-02
.... 2011-03
etc

All the way up to 2011-53

How can i get Excel to do it without having to type / copy & paste over and over?
 

Some videos you may like

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

MickG

MrExcel MVP
Joined
Jan 9, 2008
Messages
14,841
Try:-
Code:
Dim n As Integer
Dim c As Variant
For n = 1 To 53 * 11 Step 11
    c = c + 1
    c = IIf(c < 10, "0" & c, c)
    Range("A" & n + 1).Resize(11) = "2011-" & c
Next n
 

Zakkaroo

Active Member
Joined
Jul 6, 2009
Messages
383
Perfect Mick, worked great. Really appreciate the quick response.

Job done!
:biggrin:
 

Watch MrExcel Video

Forum statistics

Threads
1,109,363
Messages
5,528,263
Members
409,811
Latest member
pjwhyman

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top