+ Reply to Thread
Results 1 to 3 of 3

Reformatting a Wrongly Formatted Time field to a decimal (i.e. 8:30 PM to 8.3 hours)

  1. #1
    Registered User
    Join Date
    01-14-2014
    Location
    Farmington, CT
    MS-Off Ver
    Excel 2010
    Posts
    1

    Reformatting a Wrongly Formatted Time field to a decimal (i.e. 8:30 PM to 8.3 hours)

    Good Morning -

    I am hoping someone out there can help me.

    I got this report out of a legacy system and the data was formatted in a very strangely. In the report, the hours field was formatted with a ":" instead of a "."
    Now, I can't seem to get around the time formatting since Excel is convinced the field is supposed a time.

    For example, the column will say 0:15, but that really is 15 minutes. Excel thinks this actually 12:15 so if I convert it to general it reverts to 0.0104166666666667. I tried to do a find and replace (remove Am, PM and Replace ":" with ".") but excel either reverts back to time formatting or reverts the time value is 0.0104166666666667.

    Any help with this would be greatly appreciated!

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Reformatting a Wrongly Formatted Time field to a decimal (i.e. 8:30 PM to 8.3 hours)

    A1*24 display 8.30 instead of 8:30 in A1.
    Anyway, 15 minutes is not 15, it is 15/(24*60). 1 day = 1, 1 hour=1/24
    Quang PT

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Reformatting a Wrongly Formatted Time field to a decimal (i.e. 8:30 PM to 8.3 hours)

    So, you want fifteen minutes to be formatted shown as 0.25?

    Change your formatting to number with 2 decimals. Then put 24 into an empty cell and copy it
    Select your data (i.e. A2:A50) and Paste Special > Multiply
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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. Converting hours/min to decimal time
    By Lunaki in forum Excel General
    Replies: 10
    Last Post: 06-04-2017, 02:32 PM
  2. [SOLVED] Convert a time formatted cell to be able to calculate as a decimal
    By Thistledown in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2016, 02:51 PM
  3. [SOLVED] converting decimal hours to regular time but longer than 24 hours
    By rkruse in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-21-2013, 07:45 PM
  4. [SOLVED] Decimal Time to Hours and Minutes over 24 hours in total
    By FlyingTiger in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-17-2012, 06:18 AM
  5. VBA Convesion of Decimal Time Values to Formatted Text
    By Jenn68 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-10-2012, 06:52 PM
  6. subtract decimal hours from formatted hours
    By each in forum Excel General
    Replies: 2
    Last Post: 10-28-2008, 05:16 PM
  7. Subtracting Cells formatted with Date AND Time to get hours?
    By mcr1 - ExcelForums.com in forum Excel General
    Replies: 1
    Last Post: 07-05-2005, 05:05 AM

Tags for this Thread

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