+ Reply to Thread
Results 1 to 6 of 6

Formula to round up time to the nearest given end time.

  1. #1
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    254

    Formula to round up time to the nearest given end time.

    Does anyone know a formula that will round up time to the nearest end time?

    Example:

    An employee's end time is 4:45 pm but the employee finished at 4:43 pm. How can i get the 4:43 pm round up to the 4:45 pm end time?

    another example is:

    An employee's end time is 4:45 pm but the employee finished at 4:50 pm. How can i get the 4:50 pm round up to the 4:45 pm end time?

    Can anyone help me with this?

    I've wrote the formula:
    Please Login or Register  to view this content.
    But what the formula does is that it rounds up but is off by a couple seconds or sometimes minutes.

    If there is a formula that can give the exact end time I will be sooo happy.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formula to round up time to the nearest given end time.

    Will the end time always be 4:45 ?
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    07-21-2015
    Location
    West Midlands
    MS-Off Ver
    2010
    Posts
    43

    Re: Formula to round up time to the nearest given end time.

    Hi

    The way I have previously done this is by rounding to the nearest 5 minutes, in the next column enter the below. (Sorry forgot to mention, of course the 5 minutes can be changed to 10 or 15 minutes.)

    =(ROUND((I11*1440)/5,0)*5)/1440
    =(ROUNDUP((I11*1440)/5,0)*5)/1440

    Thanks

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Formula to round up time to the nearest given end time.

    Hi Shelly,

    This sounds like a job for MRound(). See instructions and examples at:

    http://www.techrepublic.com/blog/win...l-time-values/
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Formula to round up time to the nearest given end time.

    Quote Originally Posted by Shellybelly View Post
    Does anyone know a formula that will round up time to the nearest end time?

    An employee's end time is 4:45 pm but the employee finished at 4:50 pm. How can i get the 4:50 pm round up to the 4:45 pm end time?
    4:50 to 4:45 would be rounding down.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    Forum Contributor
    Join Date
    04-28-2013
    Location
    Miami, United States
    MS-Off Ver
    Excel 365 (Newest version)
    Posts
    254

    Re: Formula to round up time to the nearest given end time.

    Thanks to all of you the formulas worked flawless. lol

+ 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. Round time to nearest 5 mins
    By rtcwlomax in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-02-2015, 07:31 PM
  2. round time to nearest 15mins e.g. 16:12 to 16:15
    By jlgopurdue in forum Excel - New Users/Basics
    Replies: 7
    Last Post: 02-13-2014, 09:27 PM
  3. Sum time then round to nearest 5 minutes
    By Trig79 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2013, 11:02 AM
  4. Excel - round time EXACTLY to nearest second
    By TheRobsterUK in forum Excel General
    Replies: 5
    Last Post: 08-22-2012, 07:52 AM
  5. round time to nearest 15mins e.g. 16:12 to 16:15
    By simjambra in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-28-2009, 11:13 AM
  6. How do I round time to the nearest quarter of an hour
    By Meghan in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 07-07-2006, 01:40 PM
  7. [SOLVED] Round time to nearest quarter hr
    By John in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-16-2005, 06:06 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