+ Reply to Thread
Results 1 to 7 of 7

converting times to 15 min bands

  1. #1
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    converting times to 15 min bands

    Hi, I have hundreds of rows of data of timestamped entries, I want to create a pivot table that will bring back the number of entries in 15 min bands (where it is always rounded down to the previous 15 min band). I presume I will have to create an extra column in the data before bringing it into the pivot table. e.g. the times on the left column below would be converted to the column on the right. Can anyone suggest how I might convert them?
    16:12 16:00
    13:39 13:30
    13:46 13:45
    13:46 13:45
    10:01 10:00
    15:08 15:00
    14:56 14:45
    14:51 14:45
    16:33 16:30
    10:43 10:30
    13:54 13:45

    I hope that makes sense. Thanks in advance.
    Last edited by greyscale; 11-21-2011 at 09:46 PM.

  2. #2
    Registered User
    Join Date
    11-03-2011
    Location
    Shelton, CT
    MS-Off Ver
    Excel 2010
    Posts
    67

    Re: converting times to 15 min bands

    You can convert the data via the text to columns.. then set your formulas... make sense?

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,777

    Re: converting times to 15 min bands

    This formula will round down to the next 15-minute boundary, giving you your second column:

    =A1-MOD(A1,(15/1440))
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: converting times to 15 min bands

    Perfect! Thanks 6stringjazzer

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: converting times to 15 min bands

    Try,

    =FLOOR(A1,"00:15")
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Forum Contributor
    Join Date
    06-22-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    152

    Re: converting times to 15 min bands

    That works too, thanks Haseeb

  7. #7
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,777

    Re: converting times to 15 min bands

    I like Haseeb A's better than mine I was not thinking about FLOOR and did it the hard way.

+ 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