+ Reply to Thread
Results 1 to 8 of 8

How to round up/down time formats (hh:mm:ss) ???

  1. #1
    Registered User
    Join Date
    02-22-2012
    Location
    Laguna Niguel, CA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Question How to round up/down time formats (hh:mm:ss) ???

    I need to round up/down my "Duration" times into the next column, "Rounded Up/Down". So for instance, one duration call will state 00:01:37, I want that to say 00:02:00 in the next column labeled as Rounded Up/Down. Bottomline, any call over 31 seconds will be rounded up and any calls under 30 seconds will be rounded down. Can I insert a formula that will do this for the whole "Rounded Up/Down" column ? Thanks for your help guys !
    Attached Files Attached Files
    Last edited by ek4jay; 10-11-2012 at 04:20 PM. Reason: typo

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How to round up/down time formats (hh:mm:ss) ???

    In D2 and copy down, =MROUND(C2, "0:01")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    02-22-2012
    Location
    Laguna Niguel, CA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: How to round up/down time formats (hh:mm:ss) ???

    Thanks shg ! Worked !

  4. #4
    Registered User
    Join Date
    02-22-2012
    Location
    Laguna Niguel, CA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: How to round up/down time formats (hh:mm:ss) ???

    Actually it didnt work. All my calls that are 30 seconds should be rounded down. Any calls over 31 seconds should be rounded up. Reason for that is because my company doesnt charge our customers for any call duration under 30 seconds.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to round up/down time formats (hh:mm:ss) ???

    So if the duration of the call is over 30 seconds, always round up to the next minute? Otherwise, round down (to 0) Is that what you are asking for?

    Try this
    =IF(C2<"0:00:30"+0,MROUND(C2,"0:01:00"),MROUND(C2+"0:00:30","0:01:00"))
    Is that what you are looking for?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  6. #6
    Registered User
    Join Date
    02-22-2012
    Location
    Laguna Niguel, CA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: How to round up/down time formats (hh:mm:ss) ???

    Quote Originally Posted by ChemistB View Post
    So if the duration of the call is over 30 seconds, always round up to the next minute? Otherwise, round down (to 0) Is that what you are asking for?

    Try this
    =IF(C2<"0:00:30"+0,MROUND(C2,"0:01:00"),MROUND(C2+"0:00:30","0:01:00"))
    Is that what you are looking for?
    For an example..... If the duration call is 1:31, it should be rounded to 2:00. Now if the call duration is 1:30, it should be rounded down to 1:00.

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How to round up/down time formats (hh:mm:ss) ???

    =mround(c2-"0:00:01","0:01:00")

  8. #8
    Registered User
    Join Date
    02-22-2012
    Location
    Laguna Niguel, CA
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: How to round up/down time formats (hh:mm:ss) ???

    Quote Originally Posted by ChemistB View Post
    =mround(c2-"0:00:01","0:01:00")
    Worked perfectly ! Thanks ChemistB !!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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