+ Reply to Thread
Results 1 to 8 of 8

Date format conversion nightmare

  1. #1
    Registered User
    Join Date
    11-18-2019
    Location
    Apple Valley, Minnesota
    MS-Off Ver
    365
    Posts
    20

    Date format conversion nightmare

    Hi all,

    I routinely work with multiple reports containing dates which often are in differing format. Some in General, some in Date and some in Text. Most often, my habit is to copy the date information to Notepad, format the column in the destination file to Text, then copy from Notepad back into Excel. I say this only to let you know I have a fair amount of experience with figuring out how to make the values match for computational purposes.

    Recently, however, I have been working with reports in which the dates are presented with leading zeroes for the single digit day and month - e.g. March 3, 2020 displays as 03/03/2020. These are in General format. I am not wanting to alter these as they are successfully interfacing with many other spreadsheets I work with. My issue is that I have a key report I get with dates in Date format and for the life of me, I cannot get those converted to the leading zero General format. I have tried every trick I know and no joy.

    Thanks in advance
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,765

    Re: Date format conversion nightmare

    Not quite sure what to say. The two dates in your attachment are not the same - one is 9 June and the other 6 September.

    What I can tell you is this: the US’ insistence on doing dates differently to the rest of the world causes us all a whole world of pain!

    And that’s the issue, I believe: the dates you are importing are in dd/mm/yyyy format.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    11-18-2019
    Location
    Apple Valley, Minnesota
    MS-Off Ver
    365
    Posts
    20

    Re: Date format conversion nightmare

    Hi Ali,

    Thanks for the quick response.

    Back in a former life, I bought and sold commercial jet aircraft and I always used an alpha numeric format to avoid confusion - e.g. 03MAR2020. Leave it to us here in the colonies to resist conforming to the world order.

    That said, in my lens, they are the same date. How can I take the 6/9/2013 value and convert it to 06/09/2013 (June 9, 2013). I'm willing to parse the values out (Data Text To Column), reformat, convert, whatever, but I need to get to the latter format.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,765

    Re: Date format conversion nightmare

    OK - let me try again.

    The date in B7 is not a date. It’s text. If it were a date, then it would show in B7 as a 5-digit number. If you change C7 to general format, it shows 41434, which is the serial number for 9 June 2013. 41523 would be the serial number if that date were 6 September 2013.

    In short, you will need to extract the date parts using LEFT, MID and RIGHT functions and then convert these into a real date before you will be able to custom date format the cells they are in.

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,765

    Re: Date format conversion nightmare


  6. #6
    Registered User
    Join Date
    11-18-2019
    Location
    Apple Valley, Minnesota
    MS-Off Ver
    365
    Posts
    20

    Re: Date format conversion nightmare

    I figured it out.
    Attached Files Attached Files

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,765

    Re: Date format conversion nightmare

    That will work. It’s the sort of approach I was suggesting at the end of post #4.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of those who helped.

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

    Re: Date format conversion nightmare

    Quote Originally Posted by AliGW View Post
    What I can tell you is this: the US’ insistence on doing dates differently to the rest of the world causes us all a whole world of pain!
    I hate the US date format... it feels SOOOO wrong. But it has a MASSIVE advantage over the RoW system. It sorts in the correct order.
    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

+ 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. Replies: 1
    Last Post: 06-15-2012, 02:03 PM
  2. Date Format Conversion
    By raym0nd in forum Excel General
    Replies: 3
    Last Post: 08-31-2010, 09:48 PM
  3. [SOLVED] Date Format Conversion?
    By Chris in Nebraska in forum Excel General
    Replies: 37
    Last Post: 08-24-2006, 05:08 PM
  4. Conversion of date into different format
    By Fam via OfficeKB.com in forum Excel General
    Replies: 8
    Last Post: 07-31-2006, 04:18 PM
  5. Date format conversion
    By Terry Pinnell in forum Excel General
    Replies: 5
    Last Post: 11-21-2005, 04:00 PM
  6. [SOLVED] Format:Date conversion
    By Kristiaaan in forum Excel General
    Replies: 5
    Last Post: 07-30-2005, 01:05 AM
  7. Date Format - Conversion
    By tinkertoy in forum Excel General
    Replies: 1
    Last Post: 07-14-2005, 02:05 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