Power Query Course in Spanish
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: Rounding a Time(HH:MM) field

  1. #1
    New Member
    Join Date
    Apr 2002
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi there,
    Is is possible to round a Time(HH:MM) formated field that all ready has a formula in it<=IF(D432="","",SUM((D432-E432)))> to be rounded to the nearest 15; 30; 45 minutes.
    Like for example if I have 5:10(Five hours & ten minutes) and want to round it up to 5:15. Is this possible??

    Thanks

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    83,655
    Post Thanks / Like
    Mentioned
    33 Post(s)
    Tagged
    6 Thread(s)

    Default

    On 2002-04-15 09:17, soto wrote:
    Hi there,
    Is is possible to round a Time(HH:MM) formated field that all ready has a formula in it<=IF(D432="","",SUM((D432-E432)))> to be rounded to the nearest 15; 30; 45 minutes.
    Like for example if I have 5:10(Five hours & ten minutes) and want to round it up to 5:15. Is this possible??

    Thanks
    =ROUND(A1*24/0.25,0)*(0.25/24)

    where A1 houses a time value whether or not computed by means of a formula.

    Maybe you want to include this directly in your formula:

    =IF(D432,ROUND((D432-E432)*24/0.25,0)*(0.25/24),"")

    Note. I slightly modified your formula because you don't SUM((D432-E432)) is identical to D432-E432.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •