+ Reply to Thread
Results 1 to 5 of 5

Convert numbers to time when the data is entered in a particular pattern

  1. #1
    Registered User
    Join Date
    01-22-2014
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    2

    Convert numbers to time when the data is entered in a particular pattern

    I have a column with 'time of the day' data. It is a survey data of people going to work and their timing of leaving from home. It has values like 7.30, 8.20, 10.0, 1.25 etc. What these values actually mean is 7:30AM, 8:20AM, 10:00AM, 1:25PM.

    How do I convert these values to time format?

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Convert numbers to time when the data is entered in a particular pattern

    Hello and welcome to the forum.

    If those "times" are text values, try this:
    =TIME(INT(A2+0),MOD(A2+0,1)*100,0)

    If those "times" are numeric values, try this:
    =TIME(INT(A2),MOD(A2,1)*100,0)

  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 2403
    Posts
    44,053

    Re: Convert numbers to time when the data is entered in a particular pattern

    ... or:

    =(INT(A1)+MOD(A1,1)/0.6)/24
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Convert numbers to time when the data is entered in a particular pattern

    Or use this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Format as Custom, h:mm AM/PM
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

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

    Re: Convert numbers to time when the data is entered in a particular pattern

    Yea... Dollarde... remembering that one doesn't come naturally to me.

+ 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. IF statement involving time subtraction versus entered time data
    By JasonTran in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-08-2016, 11:43 AM
  2. [SOLVED] Convert numbers into a time
    By foxy_420 in forum Excel General
    Replies: 3
    Last Post: 12-05-2014, 09:55 AM
  3. Convert numbers entered into a date
    By sjennings007 in forum Excel General
    Replies: 3
    Last Post: 05-07-2014, 06:01 PM
  4. Cant convert dec numbers into time :-(
    By Pingbat in forum Excel General
    Replies: 4
    Last Post: 04-01-2014, 11:48 AM
  5. Replies: 1
    Last Post: 09-27-2013, 03:50 PM
  6. Excel 2007 : convert numbers to time
    By slimjen in forum Excel General
    Replies: 2
    Last Post: 03-08-2010, 12:24 PM
  7. [SOLVED] convert numbers to time
    By ditchy in forum Excel General
    Replies: 2
    Last Post: 06-28-2006, 01:25 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