+ Reply to Thread
Results 1 to 5 of 5

Looping Generating Specific Dates in Six Month Intervals between end and start date

  1. #1
    Registered User
    Join Date
    09-15-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2008
    Posts
    5

    Looping Generating Specific Dates in Six Month Intervals between end and start date

    Hi,

    I have a fairly urgent question.

    I am looking to generate a list of dates between a start date and an end date. The dates between those two periods would be 6 months + the start date.

    For example:

    If the start date was June 1, 2009 and the end date was September 1, 2010, I would like a list of the dates: September 1, 2009, June 1, 2010. If possible, the two dates would each be in their own excel column.

    I would then have to loop this until there was a blank cell---repeating this command for each row of data, each having a differnet start and end date. For example:

    A1 would be the first start date of June 1 2009, with B1 the end date of Sept 1 2010
    A2 would be the second start date of October 15 2009 and B2 the end date of Dec 1 2009

    ideally the dates between the first start and end date would occupy C1 and D1 and so on

    Any help would be very greatly appreciated!!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Looping Generating Specific Dates in Six Month Intervals between end and start da

    If, as implied, you're using 2008 you don't have VBA support I'm afraid.

    Ignoring the VBA for the moment - your question isn't very clear.

    Quote Originally Posted by LenaJ887
    I am looking to generate a list of dates between a start date and an end date. The dates between those two periods would be 6 months + the start date.
    ...
    If the start date was June 1, 2009 and the end date was September 1, 2010, I would like a list of the dates: September 1, 2009, June 1, 2010.
    If you're looking to list dates in 6 monthly intervals between start & end why would Jun 1 2009 to Sep 1 2010 generate a list of those dates ?
    Surely it would be Jun 1 2009, Jan 1 2010, July 1 2010 ?

    It's also not clear regards the 2nd row as to whether the dates should be listed in row 1 also or if in fact each row is to have it's own listing.

    I would suggest attaching a sample file with "before" & "after" as this will generally equate to half a dozen posts of questions & answers.

  3. #3
    Registered User
    Join Date
    09-15-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2008
    Posts
    5

    Re: Looping Generating Specific Dates in Six Month Intervals between end and start da

    I apologize that it was unclear

    1) I added incorrectly ; I should have taken more care

    2) the values in the second row are completely separate from the values in the first row--they should have their own listing

    3) I am going to execute this on a work computer which is VBA enabled, as well as on a large data set, which is why i was looking for a code that would generate these dates for each row

    4) attached is an example of the desired end result. the before would just be a list of start and end dates.

    i hope this is more clear. let me know if further clarification is needed. Thanks, I appreciate the input!
    Attached Files Attached Files

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Looping Generating Specific Dates in Six Month Intervals between end and start da

    The formula you'd need to do this is lightweight to be honest - so on a large data set it should still calculate pretty quickly.

    Using your sample (assuming A2:B2 corrected to 2009 to 2010 as implied by expected results)

    Please Login or Register  to view this content.
    Prior to XL2007 EDATE requires activation of the Analysis ToolPak Add-In (tools - addins)

  5. #5
    Registered User
    Join Date
    09-15-2010
    Location
    San Diego, California
    MS-Off Ver
    Excel 2008
    Posts
    5

    Re: Looping Generating Specific Dates in Six Month Intervals between end and start da

    Thanks! I don't have much experience working with Excel--I really appreciate this!

+ 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