+ Reply to Thread
Results 1 to 6 of 6

Convert text numbers to decimal time

  1. #1
    Forum Contributor
    Join Date
    02-15-2005
    Location
    Central UK
    MS-Off Ver
    Office 365
    Posts
    175

    Convert text numbers to decimal time

    Hi,

    I have a CSV file with employee hours in but they are all formatted as text and display such as 10.38333333605 or 9.466666667443.

    I need them to display as 10.50 and 9.75 - can anyone assist with a solution, please?

    Many thanks

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Convert text numbers to decimal time

    Not sure how you convert .383 to 0.50 and .466 to .75

    My guess is divide by 0.60
    Number in A1:A2

    Please try at B1

    =ROUND(INT(A1)+MOD(A1,1)/0.6,2)

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,213

    Re: Convert text numbers to decimal time

    I was baffled by this, too!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Contributor
    Join Date
    10-19-2012
    Location
    chennai
    MS-Off Ver
    Excel 2013
    Posts
    134

    Re: Convert text numbers to decimal time

    hi,

    try below one...

    =LEFT(A1,FIND(".",A1))&MROUND(LEFT(RIGHT(A1,LEN(A1)-FIND(".",A1)),2),25)
    RoyalRajan

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Convert text numbers to decimal time

    Thank rajansettu

    Now I see pattern.

    =INT(A1)+FLOOR(MOD(A1,1)/0.6,0.25)

  6. #6
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2021
    Posts
    5,932

    Re: Convert text numbers to decimal time

    Or try:

    =FLOOR(DOLLARDE(A1,60),0.25)

+ 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. [SOLVED] Extract numbers from text - convert to time
    By GregStewartPTC in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-15-2018, 11:24 AM
  2. VBA to convert decimal time to text
    By ciresuark in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2016, 02:10 PM
  3. [SOLVED] Convert times stored as text to time serial numbers
    By AdamJaffrey in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 01-15-2016, 05:27 AM
  4. [SOLVED] convert decimal number to time : convert 1,59 (minutes, dec) to m
    By agenda9533 in forum Excel General
    Replies: 22
    Last Post: 09-15-2013, 10:43 AM
  5. Replies: 5
    Last Post: 04-29-2010, 03:46 PM
  6. Replies: 2
    Last Post: 04-21-2010, 04:41 PM
  7. Convert Text numbers to time format
    By jermsalerms in forum Excel General
    Replies: 3
    Last Post: 01-19-2006, 08:03 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