+ Reply to Thread
Results 1 to 3 of 3

Find Duplicates, Then Calculate Date Difference

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Prescott, AZ
    MS-Off Ver
    Excel 2007
    Posts
    3

    Find Duplicates, Then Calculate Date Difference

    I have three columns:
    Status
    Date
    Name

    Is there any way to look at the name, then status, and then calculate the difference (time value) of the dates?

    For example:
    Status -------- Date ------- Name
    Active -------- 1/1/12 ----- Doe
    Active -------- 2/1/12 ----- Thomas
    Active -------- 2/2/12 ----- Smith
    Active -------- 2/15/12 ---- Young
    Discharged ---- 3/1/12 ----- Doe
    Discharged ---- 3/15/12 ---- Smith
    Active -------- 3/16/12 ---- Willis
    Discharged ---- 3/18/12 ---- Thomas

    So, what I would like to do, is look at the name, find the duplicate, make sure that the status is active (the discharged), and then calculate th difference between the resulting dates in weeks/days.

    It should return something like:
    Name ------- Duration (in days)
    Doe --------- 60
    Thomas ----- 46
    Smith ------- 42

    Thanks in advance!

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Find Duplicates, Then Calculate Date Difference

    Hi Wilsoa,

    See the difference and let me know if this solves your purpose. thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    Attached Files Attached Files
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  3. #3
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Find Duplicates, Then Calculate Date Difference

    Hi Wilsoa,

    Attached is a spreadsheet I believe does everything you requested.

    Thanks!

    RVASQUEZ

+ 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