+ Reply to Thread
Results 1 to 6 of 6

Round down to nearest hour if # of hours is between HH:01 to HH:14, round up if # of hours

  1. #1
    Registered User
    Join Date
    09-05-2013
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2010
    Posts
    19

    Round down to nearest hour if # of hours is between HH:01 to HH:14, round up if # of hours

    Round down to nearest hour if # of hours is between HH:01 to HH:14, round up if # of hours is between HH:15 and HH:59.
    For example amount of hours is 9 hours and 14 minutes round to 9 hours, amount of hours is 9 hours and 15 minutes round to 10 hours.

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Round down to nearest hour if # of hours is between HH:01 to HH:14, round up if # of h

    Try

    =TIME(HOUR(A1)+(MINUTE(A1)>14),0,0)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,936

    Re: Round down to nearest hour if # of hours is between HH:01 to HH:14, round up if # of h

    Hi and welcome to the forum

    Assuming your time is in A1, try this...

    =IF(MINUTE(A1)<=14,HOUR(A1),HOUR(A1)+1)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    09-05-2013
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Round down to nearest hour if # of hours is between HH:01 to HH:14, round up if # of h

    Thanks FDibbins that worked perfectly. I appreciate it so much

  5. #5
    Registered User
    Join Date
    09-05-2013
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2010
    Posts
    19

    Re: Round down to nearest hour if # of hours is between HH:01 to HH:14, round up if # of h

    do you know how to change the status of this to solved?

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Round down to nearest hour if # of hours is between HH:01 to HH:14, round up if # of h

    another way..

    =INT(A1*24)+(MOD(A1*24,1)>=0.25)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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. Need help with weekly timesheet to round all hours to nearest 1/4 hours
    By markjoel777 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-16-2013, 12:19 AM
  2. where to put formula to round hoursbto nearest quarter hour
    By MAINTENANCEMANCINCY in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-27-2012, 03:36 AM
  3. 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
  4. how do I round hours worked to the next half hour with a 24hr shif
    By gycoso3 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-28-2006, 04:30 PM
  5. [SOLVED] Need to round the time to the nearest quarter hour. Help
    By John in forum Excel General
    Replies: 1
    Last Post: 02-11-2006, 02:45 AM

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