+ Reply to Thread
Results 1 to 6 of 6

Formula to convert text to a date in a date format

  1. #1
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253

    Formula to convert text to a date in a date format

    Need a formula in column B that converte dates in column A in text format
    Aug 23 2011
    to date format of 8/23/11 (in colum B, same row)
    Other Examples:
    Jan 11 2011 to 1/11/11
    Feb 21 2011
    Mar 12 2011
    Apr 30 2011
    May 21 2011
    Jun 13 2011
    Jul 15 2011
    Aug 18 2011
    Sep 14 2011
    Oct 13 2011 to 10/13/11
    Nov 14 2011
    Dec 13 2011, etc

    Thank you for your help. mikeburg

  2. #2
    Valued Forum Contributor tlafferty's Avatar
    Join Date
    04-08-2011
    Location
    United States, Tacoma, WA
    MS-Off Ver
    Excel 2010, Excel 2013 Customer Preview
    Posts
    1,112

    Re: Formula to convert text to a date in a date format

    Try:
    Please Login or Register  to view this content.
    See attached book.
    Attached Files Attached Files
    If your question has been satisfactorily addressed, please consider marking it solved. Click the Thread Tools dropdown and select Mark thread as solved.
    Also, you might want to add to the user's reputation by clicking the star icon in the lower left corner of the post with the answer- it's why we do what we do...

    Thomas Lafferty
    Analyst/Programmer

  3. #3
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Formula to convert text to a date in a date format

    mikeburg,

    Attached is an example workbook based on the sample criteria you provided. I used headers in row 1, so the data starts in row 2. In cell B2 is the following formula:
    =--(LEFT(A2,LEN(A2)-5)&", "&RIGHT(A2,4))

    And then I copied down. Note that the formula will return the date code serial number and not the formatted date. This is easily remedied by changing the column B's cell format to date.

    Hope that helps,
    ~tigeravatar
    Attached Files Attached Files

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula to convert text to a date in a date format

    Or..

    Please Login or Register  to view this content.
    to cater for days shown as '2' and '12'
    Regards
    Last edited by Richard Buttrey; 08-23-2011 at 01:35 PM.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  5. #5
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Formula to convert text to a date in a date format

    Another one...

    =SUBSTITUTE(TRIM(A1)," ",", ",2)+0

    Change the cell format to m/d/yy
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  6. #6
    Forum Contributor
    Join Date
    06-23-2005
    Posts
    253

    Re: Formula to convert text to a date in a date format

    Hey, you guys are great!

    All 3 formulas work just the way I need them.

    Thanks a million. mikeburg

+ 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