+ Reply to Thread
Results 1 to 8 of 8

How to match a column of date times with a column of times (and corresponding data)?

  1. #1
    Registered User
    Join Date
    03-19-2016
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2013
    Posts
    4

    Unhappy How to match a column of date times with a column of times (and corresponding data)?

    I have attached a picture of part of the document I am tying to sort. There are about 4000 rows. The two time columns (A and K) and the corresponding data to the right of each I need to match up to the exact time if possible. The data in A is in a strange format, I don't know how to take out the dates and the T and Z without going through and doing each one individually. And then is it possible to align the rows with matching times? And just delete the rest.


    Capture.PNG

  2. #2
    Registered User
    Join Date
    03-19-2016
    Location
    England
    MS-Off Ver
    2010 and 2013
    Posts
    17

    Re: How to match a column of date times with a column of times (and corresponding data)?

    I can't get the pic to open.

  3. #3
    Registered User
    Join Date
    03-19-2016
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: How to match a column of date times with a column of times (and corresponding data)?

    Capture.PNG

    I have tried to attach it again.

  4. #4
    Registered User
    Join Date
    03-19-2016
    Location
    England
    MS-Off Ver
    2010 and 2013
    Posts
    17

    Re: How to match a column of date times with a column of times (and corresponding data)?

    Sorry, I still can't see. Could you put a sample spreadsheet up?

  5. #5
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: How to match a column of date times with a column of times (and corresponding data)?

    jbody,

    Slightly confused, because you don't have a "date" element in Col K?. But - assuming the date for Col K is "implied" to match Col A - to convert Col A to your time without the letters, put this formula in cell O2 and copy down to last entry in COl A

    =TIMEVALUE(MID(A2,12,8))

    Format Col O as "time" - "hh:mm:ss". That will give you the time that you can compare to Col K (assuming K is an actual time - if not, repeat formula in another blank column.)

    You can then sort by either Col K or Col O, and compare them with this in P2 copied down =K2=O2.

    Will give you True or False in COl P. Delete all the ones that are "True", and you will be left with a list of "unique" times.

    Ochimus

    EDIT: Sorry, reread and realised you want to remove the unmatched times. Delete the rows saying "False"
    Last edited by Ochimus; 03-19-2016 at 02:18 PM.

  6. #6
    Registered User
    Join Date
    03-19-2016
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: How to match a column of date times with a column of times (and corresponding data)?

    OK hopefully this works...
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-19-2016
    Location
    Edinburgh, Scotland
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: How to match a column of date times with a column of times (and corresponding data)?

    Thanks very much Ochimus, will give it a go!

  8. #8
    Valued Forum Contributor
    Join Date
    01-16-2012
    Location
    England
    MS-Off Ver
    MS 365
    Posts
    1,397

    Re: How to match a column of date times with a column of times (and corresponding data)?

    jbody,

    Thanks for the attachment.

    Col K was not a date, but text, so I have converted it on the attached.

    The "time" in Col A is in Col Q, and the "time" in Col K is in Col P

    Sorted the sheet by Col "K" time, and you can see in Col R whether the times match or not.

    Formula was only carried down to row 2751, where Col A becomes blank.

    Obviously you can copy the Cols O - Q down as far as you want.

    Ochimus
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Copy and Paste data in column A number of times displayed in column B
    By anthony232 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-15-2013, 05:13 PM
  2. If a search term can be found 1 time, 2 times 3 times 4 times 5 times
    By excelcandy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-10-2013, 09:57 PM
  3. Replies: 2
    Last Post: 09-04-2013, 07:59 PM
  4. Copy column variable number of times between start date and end date
    By gbisk in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-12-2013, 07:57 AM
  5. Replies: 12
    Last Post: 05-04-2013, 08:24 AM
  6. Find match in another column, compare times
    By ZooTV92 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-27-2013, 03:02 PM
  7. Replies: 3
    Last Post: 08-22-2011, 11:58 AM
  8. How to count the number of times a date appears in a column
    By smellsgood in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2010, 07:09 AM

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