+ Reply to Thread
Results 1 to 3 of 3

Convert decimals into Excel Time

  1. #1
    Registered User
    Join Date
    02-06-2021
    Location
    California, USA
    MS-Off Ver
    Microsoft 365 (2101)
    Posts
    1

    Convert decimals into Excel Time

    Hi Everyone - I'm new to this forum. I have a very basic knowledge of Excel.

    I've noticed that converting decimals to Excel Time only exists as a 24h format.
    Example: 3/24 = 0.125 ->h:mm -> 3:00

    However, I was wondering if there was a way to change the 24h format into an hour format.
    Example: 3hours 30min -> 3.5 -> 3:30

    I apologize in advance if this is a simple ask. Thanks in advance!

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Convert decimals into Excel Time

    The base unit for Excel's date/time system is the day, so convert whatever decimal time value you have to days. One possibility =CONVERT(decimalhour,"hr","day")

    Edit to add: format the cell in your desired date/time format.
    Last edited by MrShorty; 02-06-2021 at 10:12 PM.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Convert decimals into Excel Time

    Quote Originally Posted by jinh96 View Post
    I was wondering if there was a way to change the 24h format into an hour format.
    Example: 3hours 30min -> 3.5 -> 3:30
    If your data is in decimal hours, simply divide by 24 and format as some form of Time.

    For example, if A1 is 3.5 (hours), enter =A1/24 into B1, and format as Custom [h]:mm .

    I recommend always using "[h]" instead of just "h", just in case the number of hours exceeds 24.

    -----

    Quote Originally Posted by jinh96 View Post
    I've noticed that converting decimals to Excel Time only exists as a 24h format.
    Example: 3/24 = 0.125 ->h:mm -> 3:00
    I think you are confusing "conversion" with internal representation.

    There is no conversion between 0.125 and 3:00 (3h 0m).

    3:00 is simply how 0.125 appears when it is formatted as Custom [h]:mm because Excel time is stored as a fraction of a day.

    For example, 12:34:56 (12h 34m 56s) is stored as 12/24 + 34/1440 + 56/86400 (0.524259259259259) because there are 24 hr/day, 1440 min/day and 86400 sec/day.
    Last edited by joeu2004; 02-08-2021 at 06:12 AM.

+ 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. Excel formula to convert inches in decimals to traditional inch values?
    By dtb419 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-03-2016, 01:10 PM
  2. Convert decimals to time eg 240.98 to 4:59
    By Marq555 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-20-2015, 03:41 AM
  3. [SOLVED] Convert numbers with decimals into time
    By SMasher in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-19-2013, 06:43 AM
  4. [SOLVED] Excel 2007 : how convert time in decimals to time format
    By pksreela in forum Excel General
    Replies: 8
    Last Post: 07-10-2012, 12:17 AM
  5. Convert $ amount from excel to access? No decimals but 00 at end
    By Nicole in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-04-2006, 12:40 PM
  6. Convert Seconds and decimals to time
    By bagoxc in forum Excel General
    Replies: 5
    Last Post: 01-03-2006, 07:41 PM
  7. Convert decimals to feet / inches in excel
    By rk@morsesteel in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-18-2005, 01:06 PM

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