+ Reply to Thread
Results 1 to 8 of 8

Time: Convert 1 min to 15 min interval

  1. #1
    Registered User
    Join Date
    07-15-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    3

    Time: Convert 1 min to 15 min interval

    My data was captured every minute for a while - too often. When this was noticed, we switched to every 15 min. Original data sheet is 10,000 data points, and I have a few dozen of them. Extract from one of many data capture sheets is attached here.

    Col D shows the interval...hardcoded by me for illustration for this forum.

    Desired:
    - I only need data from every 15, 30, 45, 00 minutes past the hour.
    - The sheet has both 1 minute and 15 minute interval data, so my attempts to only apply my formulas to the 1 minute data are messing me up
    - I'd like to round the timestamp to the nearest 15 minutes, but only AFTER I discard (for the 1 min interval data) the other 14 excessive data points.

    Ideally, I end up with a much shorter sheet than I have now.

    I don't mind using filters, once I have something that discriminates the data as a "15 minute" data point, to show me just that 15 min interval data.

    Book3.xlsx

    I am not an expert here, by any means. Be gentle please!

  2. #2
    Registered User
    Join Date
    05-23-2013
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    36

    Re: Time: Convert 1 min to 15 min interval

    My guess would be to do a FIND for 00:30 AM, 15:30 AM, 30:30 AM, and 45:30 AM and if found add to a list

    *May need to trim the beginning off the values to be searched*

    **Or find the first one, and return that + every 15th row**
    Last edited by blackspiral; 07-15-2013 at 04:59 PM.

  3. #3
    Registered User
    Join Date
    07-15-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Time: Convert 1 min to 15 min interval

    Help with how to FIND the 1st one- the first 1 minute interval data point? This is where I was having trouble on my own. I didn't know how to subtract time. I was trying to look for the delta between the timestamps, and if it was less than 15 minutes (or something bigger than 1 min), then identify it.

    If the data were ALL 1 minute intervals, this would be easier for me. It's tricky for me (not an expert) because it's mixed.

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: Time: Convert 1 min to 15 min interval

    Is there a reason why your data goes backwards? Do you need to keep it that way?

    Pete

  5. #5
    Registered User
    Join Date
    07-15-2013
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Time: Convert 1 min to 15 min interval

    No, I can flip the data around, and put oldest first.

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,735

    Re: Time: Convert 1 min to 15 min interval

    It might be easier if the data is in chronological order, but if you keep it like it is then you could put this formula in F2 for example:

    =IF(TEXT(A2+B2-1/24/60,"hh:mm")=TEXT(A3+B3,"hh:mm"),"1 min","15 min")

    then copy it down. It agrees with your hard-coded increments.

    Hope this helps.

    Pete

  7. #7
    Registered User
    Join Date
    07-03-2013
    Location
    Indianapolis, IN, USA
    MS-Off Ver
    Excel 2010
    Posts
    1

    Question Re: Time: Convert 1 min to 15 min interval

    @blackspiral (or anyone else) Could the FIND formula be used to pull out the first entry for each time period, i.e. 9:00, 9:15, 9:30, 9:45, etc.? If so, please elaborate.

    My need is similar, but my data is every second and I only need every 15 minutes, so I'm looking for a way to quickly reduce my file size so that my formula doesn't take so long to calculate.

    Please forgive me if I should have started a new thread, this is my first question.

    Many thanks,
    Janette in Indy

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,293

    Re: Time: Convert 1 min to 15 min interval

    =IF(MOD(MINUTE(B2),15)=0,B2,"")

    Will this formula help?
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ 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. Replies: 0
    Last Post: 04-23-2012, 10:06 AM
  2. convert interval to various separate date , time, hr, minutes
    By Todd F. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  3. convert interval to various separate date , time, hr, minutes
    By Biff in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 09-06-2005, 07:05 AM
  4. convert interval to various separate date , time, hr, minutes
    By Todd F. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  5. convert interval to various separate date , time, hr, minutes
    By Todd F. in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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