+ Reply to Thread
Results 1 to 7 of 7

Converting dates from dd/mm/yyyy to mm/dd/yyyy

  1. #1
    Registered User
    Join Date
    05-09-2011
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    44

    Converting dates from dd/mm/yyyy to mm/dd/yyyy

    Hi there,

    I have a column that displays a date combination something like dd.mm.yyyy / dd.mm.yyyy. I managed to separate them into two columns by doing a left(A,10) and right(A,10) however the dates are now presented as dd.mm.yyyy, does anyone know of possible ways to change it to mm/dd/yyyy instead?

    I have tried datevalue(a1) and TEXT(A1,"DD-MMM-YYYY") to no avail.

    Appreciate your help.

    Thanks in advance.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,941

    Re: Converting dates from dd/mm/yyyy to mm/dd/yyyy

    =datevalue(mid(a1,find(".",a1)+1,2)&"/"&left(a1,2)&"/"&right(a1,4))
    Ben Van Johnson

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

    Re: Converting dates from dd/mm/yyyy to mm/dd/yyyy

    hi treeantz. here are 2 methods you can try.

    1. Text to column
    i) select data in column A (eg. A1:A10)
    ii) go to Data -> Text to Columns -> Delimited -> Next -> Next -> Date: DMY -> Destination: $A$1 (to replace existing. choose somewhere else if you dont wish to replace). -> Finish

    2. Formula (provided it's always 2 digits for day & month)
    =DATE(RIGHT(A1,4),MID(A1,FIND(".",A1)+1,2),LEFT(A1,2))

    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

  4. #4
    Forum Contributor dogberry's Avatar
    Join Date
    07-15-2012
    Location
    Wales, UK
    MS-Off Ver
    Excel 2010
    Posts
    624

    Re: Converting dates from dd/mm/yyyy to mm/dd/yyyy

    Hi

    Have you tried format cells select from the pulldown which country you want and then choosing date format, your dates should then change automatically to the selected format.

    Chris
    Click my star if I helped Thanks

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Converting dates from dd/mm/yyyy to mm/dd/yyyy

    you could try this, and then format as needed...

    =VALUE(SUBSTITUTE(LEFT(A1,10),".","/"))
    =VALUE(SUBSTITUTE(right(A1,10),".","/"))

    edit: how cool is that? 3 different solutions to the same question...excel rocks!!!!
    lol
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    05-09-2011
    Location
    *
    MS-Off Ver
    Excel 2010
    Posts
    44

    Re: Converting dates from dd/mm/yyyy to mm/dd/yyyy

    woah, all works well. Thank you very much for all your support.
    This thread is now solved. Again, many thanks

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Converting dates from dd/mm/yyyy to mm/dd/yyyy

    we are happy to help consider thanking those who helped, by clicking the star on the lower left of the post

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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