+ Reply to Thread
Results 1 to 5 of 5

Change numbers into time

  1. #1
    Registered User
    Join Date
    01-14-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    9

    Change numbers into time

    Hello all,

    Quick question, I had query through AS400 download to an excel spreadsheet one of the columns was for a time.

    I need to change the format of how it came out on the spreadsheet

    Example:

    In A2 - 30826 ----This should read 3:08:26am

    Is there any way to convert this?
    Any help would be great and please let me know if you need anymore explanation.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,508

    Re: Change numbers into time

    this would be one way...
    =TIMEVALUE(IF(LEN(A2)=5,LEFT(A2,1)&":"&MID(A2,2,2)&":"&RIGHT(A2,2),LEFT(A2,2)&":"&MID(A2,3,2)&":"&RIGHT(A2,2)))
    then format as time
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    01-14-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Change numbers into time

    Amazing!!!!

    Thanks for your help

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,508

    Re: Change numbers into time

    You're welcome! Glad that solved it for you. And thank you for the rep.
    Last edited by Sam Capricci; 11-20-2018 at 07:38 AM.

  5. #5
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Change numbers into time

    FWIW, you could also use the below, a little shorter / simpler

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

+ 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] Change numbers to time
    By trolle in forum Excel General
    Replies: 3
    Last Post: 07-11-2017, 08:02 AM
  2. [SOLVED] Automatically Change 3/4 Digit Numbers to Actual Time
    By ZooTV92 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-22-2016, 02:45 PM
  3. Sum numbers and change cell color each time a target total is reached
    By mike3029 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-18-2014, 02:08 AM
  4. Replies: 7
    Last Post: 02-27-2014, 10:56 PM
  5. Replies: 3
    Last Post: 10-26-2013, 07:13 PM
  6. Replies: 3
    Last Post: 11-06-2012, 01:37 AM
  7. change 2000 cells (negative numbers) into positive numbers
    By lisbern in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-16-2006, 01:00 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