+ Reply to Thread
Results 1 to 8 of 8

Identifying dates that are not included

  1. #1
    Registered User
    Join Date
    08-01-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2003
    Posts
    12

    Identifying dates that are not included

    I am trying to identify gaps in coverage for insurance. Even if there is a 1 day gap, I would like to identify that person in Column D by indicating "Gap in coverage".

    For example, Joseph's coverage years are 7/7/11 to 7/6/12 (Row 2), 5/12/10 to 5/11/11 (Row 4), 7/7/12 to 7/6/13 (Row 5) and 5/12/09 to 5/11/10 (Row 7). Joseph has had continuous coverage except between 5/12/11 to 7/6/11. I would like Column D to indicate when the person had a lapse in coverage. Please assist with a simple formula - thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: Identifying dates that are not included

    Quote Originally Posted by leslieharris View Post
    ... Please assist with a simple formula - thanks
    What did you have in mind?

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Identifying dates that are not included

    I have copied your data and sorted it by name, date1 and date 2, then added a formula in dolum E to test for gaps in coverage. to use the formula, you will have to sort your data each time
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    08-01-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Identifying dates that are not included

    Not worried about being too simple but need a formula to work. I have too sort through 30,000 + rows - thanks

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Identifying dates that are not included

    so are you saying that solved your question or not?

  6. #6
    Registered User
    Join Date
    08-01-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Identifying dates that are not included

    Sorry FDibbins, I do not want to sort the data but just want the cell to compare data from the entire column.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,938

    Re: Identifying dates that are not included

    then would it be possible to reference that data to another sheet, and have it sorted there automatically? then we could reference that referenced table back to your original data?

    if that isnt possible, then im out of ideas at the moment lol

  8. #8
    Registered User
    Join Date
    08-01-2012
    Location
    Washington DC
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Identifying dates that are not included

    I figured it out. I created 2 hidden Help Column. First Column (Column H) to combine the Name and Start date (minus 1). The next Column (Column I) to combine the Name and the End Date. In the 3rd column I added =IF((H2=$I$2:$I$20), "", "Gaps in coverage")

    It worked like a charm.

    Thanks

+ 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