+ Reply to Thread
Results 1 to 4 of 4

Converting dates: YYYY-MM-DD into DD Month YYYY

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    UK
    MS-Off Ver
    2010
    Posts
    1

    Converting dates: YYYY-MM-DD into DD Month YYYY

    Hello,

    This is my first post - sorry if it's in the wrong subforum.

    I have a column of approximately 1300 historical dates that follow this format:

    YYYY-MM-DD

    I'd like to automatically turn them into text, i.e.:

    1801-12-03 -> 03 December 1801

    1832-01-22 -> 22 January 1832

    1812-11-12 -> 12 November 1812

    If the day begins with a zero, it would be helpful if I it could be automatically omitted, i.e. 3 December 1801 rather than 03 December 1801.

    How would I do this in Excel 2010? I'm a novice user, so very clear instructions would be very much appreciated.

    Thanks!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,493

    Re: Converting dates: YYYY-MM-DD into DD Month YYYY

    You'll have to do it with a formula. Excel doesn't recognise dates before 01/01/1900.

    Try something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    for a date in cell A9


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,493

    Re: Converting dates: YYYY-MM-DD into DD Month YYYY


    A
    B
    C
    1
    2
    1801-12-03 -> 03 December 1801
    3
    4
    1832-01-22 -> 22 January 1832
    5
    6
    1812-11-12 -> 12 November 1812
    7
    8
    9
    1801-12-03
    3 December 1801
    =--RIGHT(A9,2)&TEXT(DATE(1,MID(A9,6,2),1)," mmmm ")& LEFT(A9,4)
    10
    1832-01-22
    22 January 1832
    11
    1812-11-12
    12 November 1812
    12

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,727

    Re: Converting dates: YYYY-MM-DD into DD Month YYYY

    This formula will also work to convert a date in A2

    =TEXT(1900&MID(A2,5,6),"d mmmm ")&LEFT(A2,4)

    If you want to do anything more complex with pre-1900 dates John Walkenbach has an add-in that might assist you - see here
    Audere est facere

+ 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] VBA incorrectly changing some dates from DD/MM/YYYY to YYYY-DD-MM
    By DaveBre in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-07-2014, 07:23 PM
  2. [SOLVED] Converting dates from dd/mm/yyyy to mm/dd/yyyy
    By treeantz in forum Excel General
    Replies: 6
    Last Post: 01-04-2013, 03:34 AM
  3. Replies: 0
    Last Post: 10-14-2012, 05:48 PM
  4. Copy+Paste macro dd/mm/yyyy to dd/mm/yyyy and NOT dd/mm/yyyy to mm/dd/yyyy
    By uimhirADo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-08-2012, 03:45 AM
  5. Macro to convert dates format from yyyy mm dd to yyyy-mm-dd
    By Gators in forum Excel Programming / VBA / Macros
    Replies: 19
    Last Post: 02-26-2009, 02:23 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