+ Reply to Thread
Results 1 to 4 of 4

How do I insert dates between the dates I already have?

Hybrid View

teozorro How do I insert dates between... 08-16-2012, 10:35 AM
tigeravatar Re: How do I insert dates... 08-16-2012, 10:44 AM
teozorro Re: How do I insert dates... 08-16-2012, 10:57 AM
tigeravatar Re: How do I insert dates... 08-16-2012, 11:22 AM
  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    Washington, D.C.
    MS-Off Ver
    Excel 2010
    Posts
    2

    How do I insert dates between the dates I already have?

    Hi all,

    First-time poster, here. No, not that kind of poster. The other kind, without the blue sticky tack.

    Anyhow, here's my quandary... I have a data set with a bunch of random dates listed. I sorted these dates so they're in order, however, I'd like to insert the dates that are missing in between.

    That is, I have 12/8/09, then 12/12/09, and then 12/15/09. Yet, I want 12/8/09, 12/9/09, 12/10/09, etc.

    How do I do this? I could obviously suffer through by hand, but I might destroy expensive things along the way.

    Best,
    Teozorro

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: How do I insert dates between the dates I already have?

    Teozorro,

    Welcome to the forum!
    Assuming the dates are in column A and row 1 is a header row so actual data starts on row 2, give this a try:

    In cell B2 (to get the new date column started):
    =MIN(A:A)
    In cell B3 and copied down until you start getting blanks
    =IF(B2="","",IF(B2+1>MAX(A:A),"",B2+1))
    Then format the cells as date.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    08-16-2012
    Location
    Washington, D.C.
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: How do I insert dates between the dates I already have?

    Thanks so much, tigeravatar! Actually, this didn't work out for my particular data set. I don't have any spaces in between the dates in my rows, so my set goes straight from 12/8/09 to 12/11/09 without any break.

    But this did inspire me. In a separate sheet, I used your first command, but then I simplified the second one to

    =B2+1

    in date format. Then I copied this down and just merged my two tables.

    Wonderful! Thanks so much for your speedy guidance.

  4. #4
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: How do I insert dates between the dates I already have?

    You're welcome, and I'm glad you got a working solution

    If that takes care of your need, please mark this thread as solved.
    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:
    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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