+ Reply to Thread
Results 1 to 5 of 5

Date formating probelm

  1. #1
    Registered User
    Join Date
    10-30-2008
    Location
    Finland
    Posts
    1

    Date formating probelm

    Shortly: is there a way to convert date-time data in format MDY HH:MM to format Y M D HH MM SS?

    So that years, months, days, hours, minutes and seconds would be in their own columns. (Seconds would be zeroes in this case but I want the column to be there.) Maybe the following example data demonstrates my need best.

    I have MDY data as follows:



    09/24/08 13:16
    09/24/08 13:17
    09/24/08 13:18



    I would like the data above to be in format Y M D H MM SS:

    2008 09 24 13 16 00
    2008 09 24 13 17 00
    2008 09 24 13 18 00
    Last edited by sesuura; 10-30-2008 at 09:54 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    if A1 holds date:

    B1 = YEAR(A1)
    C1 = MONTH(A1)
    D1 = DAY(A1)
    E1 = HOUR(A1)
    F1 = MINUTE(A1)
    G1 = SECOND(A1)

    Format to display leading zeroes as required -- eg month custom format of mm, seconds would be ss etc...

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Try a custom format yyyy mm dd hh mm ss
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531
    I believe OP requires values is separate columns.

  5. #5
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    You're right - didn't see that bit

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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