+ Reply to Thread
Results 1 to 3 of 3

convert number to date time format

  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    paris,france
    MS-Off Ver
    Excel 2007
    Posts
    16

    convert number to date time format

    Hi,

    I was wondering if someone know how to convert number to data time format:

    eg. I have number 20121231230000 and I need its conversion to 31/12/2012 23:00.

    I have tried to use fucntion date with left, mid, right but still I do not know how to extract time.

    Thank you

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: convert number to date time format

    With your number in cell A1:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: convert number to date time format

    hi there. maybe:
    =TEXT(LEFT(A1,8),"00-00-00")+TEXT(RIGHT(A1,6),"00\:00\:00")

    format to your desired format
    dd/mm/yyyy hh:mm

    Edit:
    or just
    =--TEXT(A1,"00-00-00 00\:00\:00")
    Last edited by benishiryo; 12-09-2013 at 05:19 AM.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

+ 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] Convert number format to time format
    By bgates in forum Excel General
    Replies: 3
    Last Post: 11-29-2013, 09:04 AM
  2. Convert date and time in serial number format to text format
    By nda13112 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2013, 02:45 PM
  3. [SOLVED] How do I convert imported date/time data to date/time format?
    By andykent99 in forum Excel General
    Replies: 4
    Last Post: 01-03-2013, 07:47 AM
  4. Excel: How to convert time format into number format that can be added?
    By Frances Jones in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-17-2012, 04:10 PM
  5. convert number to time format?
    By JLHORMAN in forum Excel General
    Replies: 1
    Last Post: 05-26-2005, 01:38 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