+ Reply to Thread
Results 1 to 3 of 3

Convert time and round down to nearest 15 minute interval

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

    Convert time and round down to nearest 15 minute interval

    Hi,

    I have a spreadsheet (excel 2010) with a time field pasted in from another sheet that is populated from an external database. Unfortunately, I have no control over the format in which this time field is sent to me. I am trying to convert it to 24 hour time and use either FLOOR or MOD to round to 15 minutes but I cannot seem to convert the time correctly. I have tried using Text-to-columns and then reformatting it still doesn't work. It's almost like it sees it as text. I think the original file may split the time from combined date/time field which may have caused the format issue.

    Can anyone suggest how I might convert this? I will be pasting this data into a template daily so would like it as automated as possible.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-09-2010
    Location
    Australia
    MS-Off Ver
    Excel 2013
    Posts
    1,714

    Re: Convert time and round down to nearest 15 minute interval

    hi, try
    =FLOOR(TIMEVALUE(A1),"00:15")

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

    Re: Convert time and round down to nearest 15 minute interval

    Perfect! Thank you!

+ 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