+ Reply to Thread
Results 1 to 7 of 7

Convert time into hours formula

  1. #1
    Registered User
    Join Date
    08-16-2015
    Location
    canberra Australia
    MS-Off Ver
    2010-2013
    Posts
    2

    Exclamation Convert time into hours formula

    Hi All,

    I've been stuck on an excel extraction I ran through a rostering software.

    Basically it pulled

    1.00:00:00
    1.12:00:00

    Day.HH:MM:SS

    However when trying to convert it to just hours using numerous different formulas I'm getting name or value errors.

    Do I need format the column first before trying to convert it to hours in the blank cell?

    I'm stuck on both the formatting of the cell and the formula to convert to hours.

    Very frustrating

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Convert time into hours formula

    You get better help on your question if you add a small excel file, without confidential information.

    Please also add manualy the expected result in your file.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    08-16-2015
    Location
    canberra Australia
    MS-Off Ver
    2010-2013
    Posts
    2

    Re: Convert time into hours formula

    I have attached it for you...

    Does that help?
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Convert time into hours formula

    c2 =Left(B2,1)*24+Right(Left(B2,4),2) and drag down.

    See the attached file.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,190

    Re: Convert time into hours formula

    In c2 ...

    =(LEFT(B2,1)+0)+TEXT(RIGHT(B2,8),"HH:MM")

    Format C2 as [h] if hours only or [h]:mm if hours/minutes

  6. #6
    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,929

    Re: Convert time into hours formula

    Or just this...
    =--MID(A3,3,99)
    format as time

    What you need to understand about dates and times in excel is...

    a date is just a number representing the number of days passed since 1/1/900...and then formated in a way that we recognise as a date. So, for instance, today (Sun Aug 2015) is actually 42232

    Time is actually a decimal part of 1 (day), so 06:00 AM is 0.25, 12 noon is 0.5 and 18:00 (or 6 PM) is 0.75
    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

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Convert time into hours formula

    Please read the forumrules about crossposting.

    http://www.mrexcel.com/forum/excel-q...s-formula.html

    Please reply.

+ 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. How to convert time (9:15) to time in quarter hours (9.25)
    By Ricco in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-31-2015, 01:20 PM
  2. [SOLVED] Tryin to get time over 24 Hours to convert to hours and tenths.
    By acftgrunt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-30-2015, 01:57 AM
  3. [SOLVED] Formula to Calculate Normal Hours, Time & 1/2 & Double Time from Daily Hours per week
    By KazzICC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2014, 01:51 AM
  4. convert decimal time to hours & minutes
    By Kangaroo_Pouch in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-11-2013, 07:17 AM
  5. [SOLVED] time:to convert minutes into hours
    By [email protected] in forum Excel General
    Replies: 4
    Last Post: 06-24-2005, 10:05 AM
  6. Formula To Convert Hours(time) to Numbers
    By stefeb in forum Excel General
    Replies: 4
    Last Post: 05-02-2005, 02:58 PM
  7. [SOLVED] Convert hours and minutes in time format into fractions of hours..
    By Akern in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-21-2005, 10:06 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