+ Reply to Thread
Results 1 to 4 of 4

Thread: Time Conversion

  1. #1
    Registered User
    Join Date
    02-07-2006
    Posts
    19

    Exclamation Time Conversion

    I need to convert time from hh:mm:ss to a whole number. For example I need to change 7:30:00 to 7.5. What formula do I need to use to accomplish this?

  2. #2
    Forum Guru sweep's Avatar
    Join Date
    04-03-2007
    Location
    Location: Location:
    MS-Off Ver
    XL2003 / 2007
    Posts
    2,448
    Hi,

    This will give you time as fractions of an hour

    =HOUR(A1)+MINUTE(A1)/60
    Sarcasm - because beating the **** out of someone is illegal.

  3. #3
    Registered User
    Join Date
    02-07-2006
    Posts
    19
    Thanks for the quick response!

    However, when I enter that formula it spits out 12:00:00 as the result. Am I doing something incorrectly? My original cell shows 7:30:00 AM. Do I need to remove AM for this formula to work properly?

  4. #4
    Forum Guru sweep's Avatar
    Join Date
    04-03-2007
    Location
    Location: Location:
    MS-Off Ver
    XL2003 / 2007
    Posts
    2,448
    You're not doing anything wrong. Excel in its infinite wisdom has formatted the cell as a date/time.

    Select the cell that the result is in. Go to Format > Cells > Number > General
    Sarcasm - because beating the **** out of someone is illegal.

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.2.0