+ Reply to Thread
Results 1 to 4 of 4

Picking out time range

  1. #1
    Registered User
    Join Date
    09-12-2018
    Location
    Colmar, Pennsylvania
    MS-Off Ver
    2017
    Posts
    12

    Picking out time range

    Hi,
    I have the following data:
    06:36:52.0000000 0000000001 OK
    06:17:56.0000000 0000000001 NG
    06:18:19.0000000 0000000001 NG
    10:29:13.0000000 0000000001 OK
    11:01:58.0000000 0000000001 NG
    11:02:18.0000000 0000000001 NG
    13:23:41.0000000 0000000001 OK
    14:12:26.0000000 0000000001 OK
    14:03:51.0000000 0000000001 OK
    08:00:10.0000000 0000000001 OK
    13:19:29.0000000 0000000001 OK
    13:52:01.0000000 0000000001 OK
    13:52:01.0000000 0000000002 OK
    14:17:06.0000000 0000000001 NG
    14:17:26.0000000 0000000001 NG
    08:05:31.0000000 0000000001 NG
    13:47:40.0000000 0000000001 NG
    13:48:23.0000000 0000000001 NG
    10:53:45.0000000 0000000001 OK
    09:20:59.0000000 0000000001 NG

    So some of those times are very close to each other menaning is just a repeat of the same data gathered. How can I weed out some of those times? for instance: 11:01:58 and 11:02:18 are only within seconds of each other. I would just like to pick out one. So it would be grabbing data for between 4 minutes lets say... instead of seconds. I am not sure if that makes sense.

    Any help would be appreciated.

    Thank you.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Picking out time range

    Hi david,

    I had a similar problem and solved it by using the MRound() function. The idea is that you round all of your times to the closest minute or 4 minutes and delete duplicates using the Advanced Filter. Read about MRound at:

    https://www.excelfunctions.net/excel...-function.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    09-12-2018
    Location
    Colmar, Pennsylvania
    MS-Off Ver
    2017
    Posts
    12

    Re: Picking out time range

    Thank you for your response.
    But will I have to switch my time to actual numbers? It doesn't seem to be working with regular times.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Picking out time range

    Hi,

    I think you will need to extract the time from your data into a new column before using MRound() on it. You might also need to convert the extracted data to the correct time format.

+ 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. Problem picking a range
    By juanda92 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-01-2016, 10:49 AM
  2. [SOLVED] Picking a range out of a larger range with tightest data set
    By hvincent in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2014, 11:52 AM
  3. picking system date,time with macro
    By thara.p24 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 08-16-2014, 10:45 AM
  4. picking a value out of a range
    By erics44 in forum Excel General
    Replies: 12
    Last Post: 11-10-2010, 04:10 PM
  5. Picking time from dropdown box?
    By agentred in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-21-2009, 01:36 PM
  6. Picking random cell from range
    By Chris424 in forum Excel General
    Replies: 2
    Last Post: 01-13-2009, 04:44 PM
  7. [SOLVED] Picking up the last non-empty cell in a given range
    By zhj23 in forum Excel General
    Replies: 4
    Last Post: 05-31-2005, 08:05 PM

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