+ Reply to Thread
Results 1 to 5 of 5

Again a time question...HH:MM:SS or not

  1. #1
    Forum Contributor
    Join Date
    11-04-2015
    Location
    Copenhagen, Denmark
    MS-Off Ver
    2010
    Posts
    114

    Again a time question...HH:MM:SS or not

    I have a report that gives me hours per individual in an HH:MM format.

    I wish to work with time in decimal format. I know how to convert the HH:MM cell into a decimal format.

    My question is:
    Some cells in my report have HH:MM time and others have HH:MM:SS which does not allow me to convert into a decimal easily. Can I change the HH:MM:SS into HH:MM to continue with my work?

    Very confusing, so I have attached a simple example.
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Again a time question...HH:MM:SS or not

    for hours
    =INT(C6*24)

  3. #3
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,494

    Re: Again a time question...HH:MM:SS or not

    it has got nothing to do with showing seconds or not..
    the problem is that your formula is wrong. a day has only 24 hours by using the HOUR() formula it will never go over 24 hours
    the hour formula cannot give you duration. it gives you only the hour of day, any value over 24 hours is assumed to be the next day so 25 hours is presented as 1 AM

    to convert a duration time to decimal all you need to do is C6*24 then you will have the excact decimal value of any time, eigther under or over 24 hours duration

    _____________
    additionally: to present duration in a time format you need to set the cel formatting from hh:mm:ss to [hh]:mm:ss
    with this last format it will show duration times over 24 hours correctly you find the setting under cell properties > custom


    Edit: added example file with separate explain tab for converting and formatting time and date
    Attached Files Attached Files
    Last edited by Roel Jongman; 04-18-2018 at 08:23 AM.

  4. #4
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: Again a time question...HH:MM:SS or not

    Try with
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Format to Number


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Again a time question...HH:MM:SS or not

    I don't know what are you tryin' to achieve but you can use PowerQuery to get your column C to decimals

    Power Query for
    Attached Files Attached Files

+ 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. Time question
    By Ducky405 in forum Excel General
    Replies: 4
    Last Post: 12-07-2015, 04:23 PM
  2. Question about time...
    By jcr2001 in forum Excel - New Users/Basics
    Replies: 8
    Last Post: 09-16-2006, 02:18 PM
  3. time question
    By sedonovan in forum Excel General
    Replies: 4
    Last Post: 06-26-2006, 01:10 PM
  4. Time Question
    By colin in forum Excel General
    Replies: 1
    Last Post: 03-17-2006, 08:45 AM
  5. Time Question...is this possible?
    By mileslit in forum Excel General
    Replies: 1
    Last Post: 09-07-2005, 09:05 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