+ Reply to Thread
Results 1 to 5 of 5

Convert text string into date

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Convert text string into date

    I have the following string in cell A1 as follows "Tuesday, March 01, 2016 5:09 AM". I have tried to format as date but does not work. Is there formula to convert this to a date? Desired result is 3/1/2016.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Convert text string into date

    Hi maacmaac,

    Get rid of the Tuesday and then use =DateValue() on the rest of the string.

    See the attached for the example.
    DateValue after removing Day Name.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  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,929

    Re: Convert text string into date

    If you cannot get rid of teh day name, and teh format is always like that (name comma date), try this...
    =DATEVALUE(MID(A1,FIND(",",A1)+2,99))
    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
    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,929

    Re: Convert text string into date

    Happy to help and thanks for the rep

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,907

    Re: Convert text string into date

    Or try this... =--RIGHT(A1,LEN(A1)-FIND(",",A1)-1)

+ 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] Convert text string to date
    By maacmaac in forum Excel General
    Replies: 5
    Last Post: 11-29-2015, 08:33 PM
  2. [SOLVED] Convert a Text String Date to Date Serial Number
    By herve73 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2015, 10:53 AM
  3. Convert numbers to date in text string
    By singerbatfink in forum Excel General
    Replies: 2
    Last Post: 09-21-2010, 05:58 AM
  4. Convert text string to a date?
    By Aland2929 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-24-2009, 07:57 AM
  5. Convert date and time to a text string
    By matpaulin in forum Excel General
    Replies: 2
    Last Post: 09-20-2008, 02:12 PM
  6. [SOLVED] Convert text string to date
    By AK in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-01-2006, 02:30 PM
  7. How do I convert a text string into a date?
    By JJMCDD02 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-25-2005, 08:40 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