+ Reply to Thread
Results 1 to 14 of 14

Converting date formats

  1. #1
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Converting date formats

    Hello Dear Members,

    Could you please help. I am trying to convert the format of date in excel. See below

    Tuesday, August 29, 2017 = 29/08/2017.

    So in cell A1 is Tuesday, August 29, 2017. We need cell A2 = 29/08/2017

    Any suggestion would be much appreciated.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Converting date formats in excel - HELP!!!

    There's probably a shorter way but this works on your example

    =SUBSTITUTE(MID(RIGHT(A1,LEN(A1)-FIND(" ",A1)),FIND(" ",RIGHT(A1,LEN(A1)-FIND(" ",A1)))+1,3),","," ")&LEFT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),3)&" "&RIGHT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),4)+0
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Converting date formats in excel - HELP!!!

    Or

    =--MID(A1, FIND(",", A1) + 2, 99)

    ... and format as you like.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Re: Converting date formats in excel - HELP!!!

    Hello Special K

    Nice one. Just tested it and the result is

    Tuesday, August 29,2017 using your formula above it gives me 29 Aug 2017. Which is great however do you think there is a formula to actually change it to 29/08/2017 or do I need to change the format to achieve this? Also rather than "Aug" may we have August. Thanks Special K really appreciate this.

  5. #5
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Re: Converting date formats in excel - HELP!!!

    Thanks, SHG,

    The only thing is that it did not work. I tried it and got a value error

    See Image
    Capture.JPG
    Capture.JPG

    Kind REgards

    Andrew Nze

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Converting date formats

    Works here:

    A
    B
    C
    2
    Tuesday, August 29, 2017
    29/08/2017
    B2: =--MID(A2, FIND(",", A2) + 2, 99)
    3
    Format of B2: dd/mm/yyyy

  7. #7
    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,209

    Re: Converting date formats

    Instead of a non-editable picture, Pinonze, please post an Excel sheet.
    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

  8. #8
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Re: Converting date formats

    Hello SHG

    Still doesn't work! Weird

  9. #9
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Re: Converting date formats

    QA Summary Report.xls

    Please find attached

  10. #10
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,065

    Re: Converting date formats

    With slashes

    =(SUBSTITUTE(MID(RIGHT(A3,LEN(A3)-FIND(" ",A3)),FIND(" ",RIGHT(A3,LEN(A3)-FIND(" ",A3)))+1,3),",","")&LEFT(RIGHT(A3,LEN(A3)-FIND(" ",A3)),3)&"-"&RIGHT(RIGHT(A3,LEN(A3)-FIND(" ",A3)),4))+0

    result is a number

  11. #11
    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,209

    Re: Converting date formats

    Shg's probably doesn't work 'cos of USA date conventions.

    try this:

    =DATE(RIGHT(A3,4),MONTH(1&MID(A3,FIND(" ",A3)+1,3)),LEFT(TRIM(MID(SUBSTITUTE(A3," ",REPT(" ",50)),50*2,50)),2))
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Re: Converting date formats

    @ Special K - You are a LEGEND!!!!! - Works like a treat.

    Thanks All - SHG I am ok now thanks for your help!!!! Appreciate it

  13. #13
    Registered User
    Join Date
    09-05-2017
    Location
    London
    MS-Off Ver
    MS2017
    Posts
    33

    Re: Converting date formats

    This works a treat as well. Appreciate it.

  14. #14
    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,209

    Re: Converting date formats

    You're welcome.



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

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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: 2
    Last Post: 06-02-2015, 08:42 AM
  2. Converting Date Formats for a spreadsheet
    By pdunn in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-22-2014, 04:28 PM
  3. Excel 2007 : Converting to date and time formats
    By ronbailey in forum Excel General
    Replies: 3
    Last Post: 06-28-2011, 12:13 PM
  4. Converting all date formats to one single standard format.
    By booo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-25-2010, 07:14 PM
  5. Converting date formats
    By slateral in forum Excel General
    Replies: 6
    Last Post: 03-15-2009, 04:26 PM
  6. [SOLVED] Help with converting date formats
    By k3639 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-27-2006, 06:25 PM
  7. [SOLVED] Converting date formats
    By arem in forum Excel General
    Replies: 2
    Last Post: 02-14-2006, 11:55 AM

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