+ Reply to Thread
Results 1 to 6 of 6

Round up the time to a custum value

  1. #1
    Registered User
    Join Date
    03-09-2017
    Location
    Monrovia
    MS-Off Ver
    2013
    Posts
    57

    Round up the time to a custum value

    I have a column A which contains time in this format: 0:00:00.000

    Is there any formula that I can use to roundup the said value to say 0 in a different column B?

    eg: 0:45:12.111 should be round up to 1
    0:23:10.234 Should be round up to 0.5
    3:12:15.432 should be round up to 3.5

    Every 30mins is to be counted as 0.5

  2. #2
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Round up the time to a custum value

    so rounding to the nearest 30 mins?
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by humdingaling; 05-05-2017 at 03:36 AM. Reason: file attached
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Round up the time to a custum value

    try=CEILING(A1*24,0.5)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: Round up the time to a custum value

    Or (to get output of 3.5, etc):

    =CEILING(24*A1,0.5)

    formatted as general
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Round up the time to a custum value

    Nice! but those always round UP. To round to NEAREST 30 min, try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Or
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by leelnich; 05-05-2017 at 03:51 AM.

  6. #6
    Registered User
    Join Date
    03-09-2017
    Location
    Monrovia
    MS-Off Ver
    2013
    Posts
    57

    Re: Round up the time to a custum value

    Thank You all for the help..

+ 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. custum format cells
    By sidharth1993 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-16-2016, 07:42 AM
  2. Formula to round up time to the nearest given end time.
    By Shellybelly in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-15-2015, 05:43 PM
  3. Macro or Custum Function to achieve +/- 10% of a value
    By prkhan56 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-22-2014, 01:44 PM
  4. [SOLVED] Inserting word custum template at end of document on new page
    By lavinius in forum Word Programming / VBA / Macros
    Replies: 8
    Last Post: 05-21-2013, 05:57 AM
  5. Custum subtotal formula for autofiltered data
    By 1eyedjack in forum Excel General
    Replies: 2
    Last Post: 02-08-2012, 11:14 AM
  6. [SOLVED] [SOLVED] Add standard button on custum commandbar
    By Jos Vens in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-31-2005, 08:05 PM
  7. [SOLVED] Help with using custum functions
    By Patrick in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2005, 01:06 PM

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