+ Reply to Thread
Results 1 to 4 of 4

Help in converting duration to hrs format

  1. #1
    Registered User
    Join Date
    09-02-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    60

    Help in converting duration to hrs format

    I have this set of time that is in eg. 0800 to 1630

    how do i make it in to a 8.5hrs figure
    Last edited by gloom52; 09-09-2009 at 04:31 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Help in converting duration to hrs format

    =(b1-a1)*24 and format as 0.0
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Help in converting duration to hrs format

    Hi

    Are your values time values? If so, this will work:

    Say A1 has 8:00 and A2 has 16:00 (both time values), calculate the difference with

    =A2-A1

    and format as time value. Say you put this in A3. Then you can use

    =HOUR(A3)+(MINUTE(A3)/60)

    This must be formatted as "General" and will show as 8.5

  4. #4
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: Help in converting duration to hrs format

    As usual, SHG's solution is much more elegant!

+ 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