+ Reply to Thread
Results 1 to 4 of 4

Time Conversion

Hybrid View

  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 Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    Hi,

    This will give you time as fractions of an hour

    =HOUR(A1)+MINUTE(A1)/60
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  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 Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,454
    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

+ 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