+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Rounding up minutes to nearest hour?

  1. #1
    Registered User
    Join Date
    12-15-2009
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Rounding up minutes to nearest hour?

    Hi, could anyone help me with this, I am doing a spreadsheet for my work rosters to total my hours worked(& eventually automatically work out my pay!)

    Some shifts start at midnight but are shown as starting at 00:01, I would like to keep this but when totalling my hours it will state hours as 07:59 & i'd like to round it up to 08:00. I have searched the forums & come across a few variations but haven't the knowledge to implement it into my spreadsheet!

    Have uploaded the spreadsheet with a few explanations, hope you can help
    Attached Files Attached Files
    Last edited by Belatrix101; 12-17-2009 at 10:54 PM. Reason: Solved

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Rounding up minutes to nearest hour?

    What should happen with say 10:00 to 14:24 ?

    Should that be 2:24, 2:25, 2:30 or 3:00 ?

    Assuming 2:25 (ie round up to nearest 5 min interval) then

    =CEILING((B3>C3)+C3-B3,"00:05")

    change the significance as per your requirement

  3. #3
    Registered User
    Join Date
    12-15-2009
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Rounding up minutes to nearest hour?

    Quote Originally Posted by DonkeyOte View Post
    What should happen with say 10:00 to 14:24 ?

    Should that be 2:24, 2:25, 2:30 or 3:00 ?

    Assuming 2:25 (ie round up to nearest 5 min interval) then

    =CEILING((B3>C3)+C3-B3,"00:05")

    change the significance as per your requirement
    DonkeyOte, all shifts finish on the hour, so your example wouldn't be an issue, being a newbie to Excel I was thinking along the lines of say...... if minutes > than 50 then reset to 00 but add 1 to the hour but in code format!

  4. #4
    Registered User
    Join Date
    12-15-2009
    Location
    Australia
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: Rounding up minutes to nearest hour?

    Sorry, last post was meant to read ".....all midnight shifts finish on the hour......"

    Thanks DonkeyOte, your suggestion has done the trick!

+ 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