Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Compare dates and insert a missing date in a new row

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    This is what I would like to do.
    The first column of my spreadsheet could have text and date values; as follows:
    12/5/2000
    12/6/2000
    12/9/2000
    Subtotal

    1/1/2001
    1/2/2001
    1/3/2001
    subtotal
    GrandTotal

    I would like a macro to be applied to the first column. The macro needs to realize that there is a gap in the dates after 12/6/2000 and and before 12/9/2000. I want the macro to insert the missing dates in 2 new rows
    12/7/200
    12/8/2000

    So the spreadwheet should look like:

    12/5/2000
    12/6/2000
    12/7/2000
    12/8/2000
    12/9/2000
    Subtotal

    1/1/2001
    1/2/2001
    1/3/2001
    subtotal
    GrandTotal

    _________________
    regards-
    Yousef

    [ This Message was edited by: yousef9 on 2002-04-16 20:03 ]

  2. #2
    New Member
    Join Date
    Apr 2002
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-04-16 20:01, yousef9 wrote:
    This is what I would like to do.
    The first column of my spreadsheet could have text and date values; as follows:
    12/5/2000
    12/6/2000
    12/9/2000
    Subtotal

    1/1/2001
    1/2/2001
    1/3/2001
    subtotal
    GrandTotal

    I would like a macro to be applied to the first column. The macro needs to realize that there is a gap in the dates after 12/6/2000 and and before 12/9/2000. I want the macro to insert the missing dates in 2 new rows
    12/7/200
    12/8/2000

    So the spreadwheet should look like:

    12/5/2000
    12/6/2000
    12/7/2000
    12/8/2000
    12/9/2000
    Subtotal

    1/1/2001
    1/2/2001
    1/3/2001
    subtotal
    GrandTotal

    _________________
    regards-
    Yousef

    [ This Message was edited by: yousef9 on 2002-04-16 20:03 ]

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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