+ Reply to Thread
Results 1 to 8 of 8

Insert missing dates

  1. #1
    Registered User
    Join Date
    01-13-2011
    Location
    Kansas City, United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Insert missing dates

    I have a set of dates from 1998-2005 but some of the days are missing.Does anyone know how to set up something in excel to find the missing dates and insert rows? Thanks

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: Insert missing dates

    If your dates are sequential and in column A, in a helper column starting with row 2, put in this formula =if (A1+1=A2,"","Missing Date") and copy it down.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    01-13-2011
    Location
    Kansas City, United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Inserting Missing Dates

    I have a database with daily average transactions from 1998-2005. Some of the days are mssing from the database. I want to create a formula that will find the missing days and insert a row. Does anyone know how to do this. Thanks.My database looks like this

    Invoice Date Average Daily Price
    1/1 45
    1/2 48
    1/3 50
    1/5 45
    1/6 46

    I would like to enter arow for 1/4 using a formula.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Inserting Missing Dates

    With your posted data in cells A1:B6, with the dates starting in A2...

    This regular formula won't insert rows (no formula can do that), but it will list the missing dates:
    Please Login or Register  to view this content.
    Copy that formula down until it returns #NUM! errors.

    using your posted data, the formula returns the missing date: 01/04/2011

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  5. #5
    Registered User
    Join Date
    01-13-2011
    Location
    Kansas City, United States
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Inserting Missing Dates

    Yes this helps. Thank you

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Insert missing dates

    Duplicate post, threads merged.
    Entia non sunt multiplicanda sine necessitate

  7. #7
    Registered User
    Join Date
    04-19-2014
    Location
    Phil
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Insert missing dates

    Hi! is there a formula that can add row in a cell for the missing dates here is my sample :
    10/27/2014
    10/28/2014
    10/29/2014
    10/31/2014
    11/1/2014
    11/2/2014
    10/27/2014
    10/28/2014
    10/29/2014
    10/31/2014

    I would like to fill in those rows that dont have the dates for the week, hope you can help me on this

  8. #8
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,606

    Re: Insert missing dates

    Mikey_56,
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

+ 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