+ Reply to Thread
Results 1 to 9 of 9

Hours & Minutes to Decimal

  1. #1
    Registered User
    Join Date
    05-05-2006
    Posts
    10

    Hours & Minutes to Decimal

    How do I convert 2:15 TIME VALUE (2 hours and 15 minutes) to 2.25 hours?
    I'm really beat on this one. Please be specific. Thanks so much.

  2. #2
    Valued Forum Contributor
    Join Date
    03-25-2004
    Location
    Boston, MA US
    Posts
    1,094
    Assuming your value is in A1

    =CONVERT(A1,"day","hr")

    HTH,

    Steve

  3. #3
    Niek Otten
    Guest

    Re: Hours & Minutes to Decimal

    =A1*24
    Format as General (or as Number, but don't leave it as Time as Excel did)

    --
    Kind regards,

    Niek Otten


    "SAR" <[email protected]> wrote in message news:[email protected]...
    |
    | How do I convert 2:15 TIME VALUE (2 hours and 15 minutes) to 2.25
    | hours?
    | I'm really beat on this one. Please be specific. Thanks so much.
    |
    |
    | --
    | SAR
    | ------------------------------------------------------------------------
    | SAR's Profile: http://www.excelforum.com/member.php...o&userid=34172
    | View this thread: http://www.excelforum.com/showthread...hreadid=539381
    |



  4. #4
    Registered User
    Join Date
    05-05-2006
    Posts
    10
    I must not be doing something right to get 2.25 hours.

    I added times of day and got 2:15 (time value format-2hours & 15 minutes). 2:15 is in cell A1. Then I tried =CONVERT(A1,"day","hr") with Number and General format and received #NAME?. Tried =A1*24 with Number and General format and received 0.

    Please help.

  5. #5
    David Biddulph
    Guest

    Re: Hours & Minutes to Decimal

    "SteveG" <[email protected]> wrote in
    message news:[email protected]...
    >
    > Assuming your value is in A1
    >
    > =CONVERT(A1,"day","hr")


    But remember that the CONVERT function is only available if the Analysis
    ToolPak add-in is installed.
    --
    David Biddulph



  6. #6
    David Biddulph
    Guest

    Re: Hours & Minutes to Decimal

    "SAR" <[email protected]> wrote in message
    news:[email protected]...
    >
    > I must not be doing something right to get 2.25 hours.
    >
    > I added times of day and got 2:15 (time value format-2hours & 15
    > minutes). 2:15 is in cell A1. Then I tried =CONVERT(A1,"day","hr")
    > with Number and General format and received #NAME?. Tried =A1*24 with
    > Number and General format and received 0.


    For CONVERT you need the Analysis ToolPak add-in.

    =A1*24 should work, so my guess is that your 2:15 is not formatted as time.
    Check the format of A1.
    --
    David Biddulph



  7. #7
    Niek Otten
    Guest

    Re: Hours & Minutes to Decimal

    <I added times of day and got 2:15 (time value format-2hours & 15 minutes)>

    ????Please be more specific. What exactly did you do?

    "SAR" <[email protected]> wrote in message news:[email protected]...
    |
    | I must not be doing something right to get 2.25 hours.
    |
    | I added times of day and got 2:15 (time value format-2hours & 15
    | minutes). 2:15 is in cell A1. Then I tried =CONVERT(A1,"day","hr")
    | with Number and General format and received #NAME?. Tried =A1*24 with
    | Number and General format and received 0.
    |
    | Please help.
    |
    |
    | --
    | SAR
    | ------------------------------------------------------------------------
    | SAR's Profile: http://www.excelforum.com/member.php...o&userid=34172
    | View this thread: http://www.excelforum.com/showthread...hreadid=539381
    |



  8. #8
    Peo Sjoblom
    Guest

    Re: Hours & Minutes to Decimal

    You need to format the cell as general

    --

    Regards,

    Peo Sjoblom

    http://nwexcelsolutions.com



    "SAR" <[email protected]> wrote in message
    news:[email protected]...
    >
    > I must not be doing something right to get 2.25 hours.
    >
    > I added times of day and got 2:15 (time value format-2hours & 15
    > minutes). 2:15 is in cell A1. Then I tried =CONVERT(A1,"day","hr")
    > with Number and General format and received #NAME?. Tried =A1*24 with
    > Number and General format and received 0.
    >
    > Please help.
    >
    >
    > --
    > SAR
    > ------------------------------------------------------------------------
    > SAR's Profile:
    > http://www.excelforum.com/member.php...o&userid=34172
    > View this thread: http://www.excelforum.com/showthread...hreadid=539381
    >




  9. #9
    Registered User
    Join Date
    05-05-2006
    Posts
    10
    Thanks - It works now. You guys are the greatest!

+ 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