+ Reply to Thread
Results 1 to 5 of 5

Generating a list of dates within ranges?

  1. #1
    Registered User
    Join Date
    12-07-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    3

    Question Generating a list of dates within ranges?

    Hi All!

    I am a decent Excel data manipulator who is familiar with formulas and filtering, but don't have any programming/VBA skills.

    I am trying to solve this challenge: I have a start date and end date column, and what I want to create is a list of all the dates between the start and end date, each on their own row.

    I don't think there's a formula for this, so I have posted here.

    I know there's a way to do this in SQL, (but am trying to work this into a regular use spreadsheet).

    So the hypo is really simple:

    Start Date, End Date
    1/1/2013,1/5/2013
    1/7/2013,1/8/2013

    Results of macro/script:
    1/1/2013
    1/2/2013
    1/3/2013
    1/4/2013
    1/5/2013
    1/7/2013
    1/8/2013

    Please let me know with questions, and thanks 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: Generating a list of dates within ranges?

    Try this

    Please Login or Register  to view this content.
    Martin

  3. #3
    Registered User
    Join Date
    12-07-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    3

    Re: Generating a list of dates within ranges?

    Martin

    thank you very much for the response!

    pardon my ignorance, but which portions of the post should I replace with the columns that have my start date end date?

    Thank you!

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

    Re: Generating a list of dates within ranges?

    I have assumed that you have headers in row 1 and the data is in columns A & B.

    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/2010.

  5. #5
    Registered User
    Join Date
    12-07-2014
    Location
    United States
    MS-Off Ver
    Office 2010
    Posts
    3

    SOLVED>Re: Generating a list of dates within ranges?

    Worked perfectly, thanks so much Martin!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Generating a schedule/calendar from a list of dates
    By Cabezone in forum Excel General
    Replies: 0
    Last Post: 12-09-2011, 03:05 PM
  2. Generating dates rang based on list of ranges with weekdays
    By Draekus in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-22-2011, 08:35 PM
  3. Generating output to a column for many ranges
    By Rynofasho in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-09-2010, 03:08 PM
  4. [SOLVED] How to change empty ranges from a plot series without generating e
    By luizavala in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-08-2006, 06:30 PM
  5. Generating Ranges in VBA
    By cmk18 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-16-2005, 03:12 PM

Tags for this Thread

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