Excel User Group
Microsoft Excel blogs, forums, files. Read, ask questions, provide answers.

Convert time hh:mm to a decimal.

Latest post Mon, Mar 17 2008 3:49 PM by Nick Hodge. 2 replies.
  • Mon, Mar 17 2008 3:18 PM

    Convert time hh:mm to a decimal.

    I am importing a time report from Quickbooks to Excel. The time format comes in hh:mm.  I want to multiply that time by an hourly rate.

    I am using MS Office 2003.  I have tried the suggestions in MS help such as CONVERT, INT. I have pasted my spreadsheet details below.

    Week of Mar 9, 08
     
    Employee 1
    Customer 1 - Addition 1:52
    Customer 2 - Addition 2:32
    Customer 3 - Addition 0:58
    Customer 4 - Breakfast Nook 2:58
    Total Employee 1 8:20
    Employee 2
    Customer 1 - Addition 7:58
    Total Employee 2 7:58
    TOTAL 16:17

     

    • Post Points: 5
  • Mon, Mar 17 2008 3:39 PM In reply to

    Re: Convert time hh:mm to a decimal. NEVER MIND

    I figured it out. 

    • Post Points: 21
  • Mon, Mar 17 2008 3:49 PM In reply to

    • Nick Hodge
    • Top 10 Contributor
    • Joined on Sun, Dec 23 2007
    • Southampton
    • Posts 336
    • Points 5,771
    • MVP

    Re: Convert time hh:mm to a decimal. NEVER MIND

    For completeness and to close the thread, I suspect the OP had noticed that a time in excel is a decimal of a day (a day being 1), so 12 noon is .5 and so on.

    So to multiply times by hourly rate for example, you have to multiply the hours by 24 to get days, so, if you have a time of 8 hours at £20 per hour then the formula would be With time in A1 and rate in B1

    =(A1*24)*B1

    Should give you 160

    You can do no better than check out here www.cpearson.com/excel/datetime.htm

    Regards
    Nick Hodge
    Microsoft MVP, Excel
    Southampton, UK

    Filed under: ,
    • Post Points: 5
Page 1 of 1 (3 items) | RSS
Copyright Excel User Group and the relevant contributors, 2008. All Trade Marks acknowledged. This site is a peer-to-peer site and NOT affiliated in any way to Microsoft Corp. All rights reserved.