+ Reply to Thread
Results 1 to 5 of 5

Find Earliest Time For Each Serial Number

  1. #1
    Registered User
    Join Date
    05-01-2008
    Posts
    2

    Find Earliest Time For Each Serial Number

    I have a large file with serial numbers and times. Each serial number has between 1 and 7 times. I need to find the earliest time associated with each serial number.

    In the form of:

    1234567 1:15 PM
    1234567 1:21 PM
    1234567 1:13 PM
    9876543 7:31 AM
    9876543 8:22 AM
    9876543 6:59 AM
    9876543 7:55 AM

    I've also attached a sample spreadsheet.

    Thanks
    Attached Files Attached Files
    Last edited by dilbert1187; 05-01-2008 at 05:41 PM.

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    You can do this with function. Have a look at the attached file and see how it goes.

    rylo
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    05-01-2008
    Posts
    2
    It's not working so well. I tried changing the range to fit my data and I get #DIV/0 error or a blank cell. This is what I changed the formula to.

    =IF(ROW()-1>SUM(1/COUNTIF($S$2:$S$4239,$S$2:$S$4239)),"",INDEX(S:S,SMALL(IF(ISNUMBER(MATCH(ROW($S$2:$S$4239),MATCH($S$2:$S$4239,$S$2:$S$4239,0),0)),ROW($S$2:$S$4239),""),ROW()-1)))

    The only things I changed from what was posted was all of the column A to row S, row 8 to 4239, and INDEX(A:A, to INDEX(S:S,.

    I appreciate the help and I'll keep trying while I wait to hear back.

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Here's a slightly different approach....

    Put this formula in U2

    =IF(S2<>S3,MIN(IF(S$2:S2=S2,T$2:T2)),"")

    confirm with CTRL+SHIFT+ENTER, format as time and copy formula all the way down the column.

    Now filter this column on non-blanks and hide column T

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Can you please put up a sample file with some representative data, and some results you would expect to get from that data.


    rylo

+ 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