+ Reply to Thread
Results 1 to 2 of 2

Automatic Fill Question

  1. #1
    Registered User
    Join Date
    06-17-2010
    Location
    Fairfax, VA
    MS-Off Ver
    Excel 2003
    Posts
    1

    Automatic Fill Question

    Hey guys i'm new to the forum and I have a problem that I can't solve or seems to find solution online. Here I go:

    So i have a large spreadsheet roughly about 6000 lines.
    it looks like this
    A B
    7/1991 JFCOM
    4/1992 JFCOM
    8/1992 SOTHCOM
    2/1993 JFCOM
    ..... ............

    I want excel to automatically add X number of row to fill in the missing months and fill column B with the starting month. So i want it to look like this.

    A B
    7/1991 JFCOM
    8/1991 JFCOM
    9/1991 JFCOM
    10/1991 JFCOM
    11/1991 JFCOM
    12/1991 JFCOM
    1/1991 JFCOM
    2/1991 JFCOM
    3/1991 JFCOM
    4/1992 JFCOM
    ....... JFCOM
    8/1992 SOUTHCOM
    ....... SOUTHCOM
    2/1993 JFCOM
    ........ JFCOM


    Hope I explained it clearly and thank you in advance!

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Automatic Fill Question

    Try this macro

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1