+ Reply to Thread
Results 1 to 6 of 6

Change number in to time

  1. #1
    Registered User
    Join Date
    04-15-2014
    Location
    Nederland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Change number in to time

    Hello, I am new to Excelforum.com and also a beginner to Office.

    My question is i try to change the numbers in to min and sec like this here below.

    Table row:

    300 > in to this 3:00 and not like this > 00:03:00
    1000 > in to this 10:00
    10000 > in to this 1:00:00

    that all automatic for the whole row.

    Is that possible ?

    Thanks in advance.

  2. #2
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Change number in to time

    Hi,

    I guess this can be done if we convert the numbers into text. Can you please upload your excel template here?

  3. #3
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Change number in to time

    Please use the following formula in cell B1, hope it works for you..


    =IF(A1>=10000,CONCATENATE(INT(A1/10000),":",RIGHT(INT(A1/100),2),":",RIGHT(A1,2)),CONCATENATE(INT(A1/100),":",RIGHT(A1,2)))


    A B

    300 3:00
    1000 10:00
    10000 1:00:00
    12345 1:23:45


    Regards,
    Chandra

  4. #4
    Registered User
    Join Date
    10-08-2012
    Location
    hyderbad
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Change number in to time

    Hi Tasos112,

    If it is number use this formula:
    =TIME(INT(A1/10000),INT(MOD(A1,10000)/100),MOD(A1,100))

    and if it is text:
    =TIME(VALUE(LEFT(A1,2)),VALUE(MID(A1,3,2)),VALUE(RIGHT(A1,2)))

    Note:: cell format should be h:mm:ss

    HoPE Enjoy
    MaSs

  5. #5
    Registered User
    Join Date
    04-15-2014
    Location
    Nederland
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Change number in to time

    Hi all, i try to type this:

    =IF(A1>=10000,CONCATENATE(INT(A1/10000),":",RIGHT(INT(A1/100),2),":",RIGHT(A1,2)),CONCATENATE(INT(A1/100),":",RIGHT(A1,2)))

    I get this error. The formula you typed contains an error.

    Thanks for the reply

  6. #6
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Change number in to time

    Please see the attached file.
    Attached Files Attached Files

+ 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. Sum charge amount every time the code and the order number change
    By children in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-19-2013, 08:49 AM
  2. Replies: 3
    Last Post: 11-06-2012, 01:37 AM
  3. How Change the Date \ Time Stamp of a file to a number ? (EXCEL VBA)
    By nawaralobaidi in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-06-2012, 12:23 PM
  4. How do I make a change in time into a number I can use to calcula.
    By Sportystan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2005, 01:06 PM
  5. how do you change time(hours) into a number for multiplication e.
    By ejk1945 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-24-2005, 08:06 PM

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