+ Reply to Thread
Results 1 to 9 of 9

Find duplicate values in different columns

  1. #1
    Registered User
    Join Date
    05-31-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Find duplicate values in different columns

    Ok. Is this even possible. I work for an answering service and trying to determine the time between a call being placed and a call returned. Say you have the following values:
    callNo time returncall time returned
    A1 12:00
    A2 1:00
    A3 1:34
    A4 2:15
    3:00 A1 3:00
    3:30 A2 2:30
    4:00 A3 2:26
    4:30 A4 2:15

    Say for e.g call A1 was placed at 12:00 and returned at 3:00, so it was 3 hours between the time call placed to returned. And so in, Is there any easy way to do this? I have tried a few fornulas, but nothing has given me what I need.

  2. #2
    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,939

    Re: Find duplicate values in different columns

    your thread title and teh requirements you describe seem to be at odds with each other?

    if you want to simply subtract 2 times, that is a simple =A1-A2.

    if on the other hand, you are looking for when the time when your 12:00 call was returned, what would the criteria be for finding the entry that indicates that cell contains the time it was returned?
    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

  3. #3
    Registered User
    Join Date
    05-31-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Find duplicate values in different columns

    callNo time callreturned difference
    A1 12:00
    A2 1:00
    A3 1:34
    A4 2:15
    3:00 A1 3
    3:30 A2 2:30
    4:00 A3 2:26
    4:30 A4 2:15

    So, what it is, is each call is returned at a certain time, and trying to find the difference from when call placed to call returned
    Last edited by excelnewbie1; 08-06-2012 at 10:11 AM.

  4. #4
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Find duplicate values in different columns

    How about in Row 1

    =vlookup(A1,C:D,2,false)-A1 and drag down
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  5. #5
    Registered User
    Join Date
    05-31-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Find duplicate values in different columns

    Are you saying A1 as in column A, row 1, or as in callno A1 (because that is just an example). I have 13K rows that I need to go through.

    Bascially what I am looking to see if a value in one column is located somewhere in another column. And if it does appear subtract the time from the first column where the value is from the second column where the value is?
    Last edited by excelnewbie1; 08-06-2012 at 10:49 AM.

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Find duplicate values in different columns

    I meant Col A, row 1 and a small tweak to the formula..

    =IF(A2="","",(VLOOKUP(A2,C:D,2,FALSE)-B2))

    See attached.

  7. #7
    Registered User
    Join Date
    05-31-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Find duplicate values in different columns

    Not sure if I am explaining this well. I saw your spreadsheet and what I am trying to find is the difference between the 2 times that call was placed and the call was returned.

    If one call, A25 was placed at 5:45AM, and A25 was returned at 6:15AM, I want the formula to tell me that it was 0:30 from time was placed to returned. or if another was placed at 8:25AM and the call was returned at 9:54AM, I want the spreadsheet to tell me that it was 1:29 from time call placed to returned.

    Does that explain it better?

  8. #8
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Find duplicate values in different columns

    That is exactly what my sample worksheet does, dosen't it?

    Hence,
    Call A1 is 3:00 (12:00 to 15:00)
    Call A2 is 1:30 (1:00 to 2:30)
    Call A3 is 0:52 (1:34 to 2:26)
    Call A4 is 0:00 (2:15 to 2:15)

  9. #9
    Registered User
    Join Date
    05-31-2012
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    10

    Re: Find duplicate values in different columns

    I see what you are trying to get at, but not sure if I follow it correctly,( and I am in now way a excel expert), but the first column is the callno the second is calltime, 2rd is callreturned no, and the 4th gives us the difference of time from when the call was placed and when it was returned (this is the column that I want excel to caluculate).

+ 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