+ Reply to Thread
Results 1 to 10 of 10

Convert Month Day, Year to dd/mm/yyyy

  1. #1
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57

    Convert Month Day, Year to dd/mm/yyyy

    Hi,

    I have a list of date in Month Day, Year format and need to convert to dd/mm/yyyy. For example, May 2, 2013 become 02/05/2013.

    I have tried DateValue and TEXT(A1,"DD-MMM-YYYY"). However, both formula do not work for me.

    I hope someone may help.

    Thanks,
    Ling

  2. #2
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Convert Month Day, Year to dd/mm/yyyy

    Did try change the cell format to dd/mm/yyy ?
    -If the problem is solved, please mark your thread as Solved: Click Thread Tools above your first post, select "Mark your thread as Solved".

    -Always upload a workbook before start your question
    To attach a file, push the button with the paperclip (or scroll down to the Manage Attachments button), browse to the required file, and then push the Upload button.

    +++ If my answer(s) helped you, please add me reputation by click on * +++

  3. #3
    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
    52,946

    Re: Convert Month Day, Year to dd/mm/yyyy

    Try applying 1 of the standard date formats, or create your own under custom?

    edit: wenqq beat me to it
    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

  4. #4
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Convert Month Day, Year to dd/mm/yyyy

    if the date is a text string try this:
    =TEXT(MID(A1,FIND(" ",A1)+1,SEARCH(",",A1)-(FIND(" ",A1)+1))&"/"&LOOKUP(LEFT(A1,FIND(" ",A1)-1),{"April","August","December","February","January","July","June","March","May","November","October","September"},{4,8,12,2,1,7,6,3,5,11,10,9})&"/"&RIGHT(A1,4),"DD/MM/YYYY")
    Last edited by acerrhod; 05-29-2013 at 01:38 AM.

  5. #5
    Registered User
    Join Date
    01-06-2009
    Location
    KL, Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    57

    Re: Convert Month Day, Year to dd/mm/yyyy

    Thanks acerrhod. Your formula work well for me but there is an error when the date is 2 digits for example, April 30, 2013. The result become 03/04/2013.

    Can you please help me to fix the problem. Thanks again.

  6. #6
    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
    52,946

    Re: Convert Month Day, Year to dd/mm/yyyy

    what exactly are your dates - text or value? test with =isnumber() FALSE = text

  7. #7
    Valued Forum Contributor wenqq3's Avatar
    Join Date
    04-01-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    868

    Re: Convert Month Day, Year to dd/mm/yyyy

    Or you can upload a sample workbook, so we can work on it. Thanks

  8. #8
    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
    52,946

    Re: Convert Month Day, Year to dd/mm/yyyy

    lol yup, what wenqq said

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  9. #9
    Forum Contributor
    Join Date
    04-23-2013
    Location
    Abu Dhabi United Arab Emirates
    MS-Off Ver
    Excel 2010
    Posts
    178

    Re: Convert Month Day, Year to dd/mm/yyyy

    OK TRY THIS
    =TEXT(MID(A13,FIND(" ",A13)+1,SEARCH(",",A13)-(FIND(" ",A13)+1))&"/"&LOOKUP(LEFT(A13,FIND(" ",A13)-1),{"April","August","December","February","January","July","June","March","May","November","October","September"},{4,8,12,2,1,7,6,3,5,11,10,9})&"/"&RIGHT(A13,4),"DD/MM/YYYY")

    check the attachment
    thanks
    Attached Files Attached Files

  10. #10
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Convert Month Day, Year to dd/mm/yyyy

    Hi

    Assuming in A1 is the date as per your post #1 "May 2, 2013". Enter the following formula in say B1 and format the cells as "dd/mm/yyy" (Without the quotes)
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Regards Kevin


    Merged Cells (They are the work of the devil!!!)

+ 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