+ Reply to Thread
Results 1 to 3 of 3

Thread: round times to nearest 10 seconds

  1. #1
    Registered User
    Join Date
    01-07-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    16

    round times to nearest 10 seconds

    Can anyone advise on how to round times to the nearest 10 seconds? I am using hh:mm:ss time format in Excel 2003. For example:

    12:00:54 should be 12:00:50
    02:50:50 should be 02:50:50 (i.e. this one is fine)
    17:40:46 should be 17:40:50
    08:30:42 should be 08:30:40
    23:20:38 should be 23:20:40

    The example shows rounding up for numbers 5 to 9 and rounding down for 1-4 but it would be OK to round them all up or down if that is easier.

    Many thanks
    Last edited by menos; 07-06-2011 at 04:22 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-06-2008
    Location
    Norway
    MS-Off Ver
    2003, 2010
    Posts
    226

    Re: round times to nearest 10 seconds

    Maybe like this:
    =time(hour(A1),minute(A1),round(second(A1)/10,0)*10)

  3. #3
    Registered User
    Join Date
    01-07-2011
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: round times to nearest 10 seconds

    That works great, thanks!

+ 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.2.0