+ Reply to Thread
Results 1 to 6 of 6

Convert text string to date

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

    Convert text string to date

    I have a group of cells formatted as follows:

    NOV 06 2015
    NOV 12 2015
    FEB 20 2015
    AUG 03 2014
    etc.

    I have been trying to use a TEXT formula to the corresponding date and using a LEFT, MID, and RIGHT within the TEXT formula to covert to date but no luck. Any help appreciated. Thanks

  2. #2
    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: Convert text string to date

    Hi,

    One way

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    YOU could also create a separate VLOOKUP table in order to get the month number and avoid the LOOKUP function and shorten the formula a little.
    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.

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Convert text string to date

    Try this formula

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Format as Date

    Data Range
    A
    B
    1
    NOV 06 2015
    11/6/2015
    2
    NOV 12 2015
    11/12/2015
    3
    FEB 20 2015
    2/20/2015
    4
    AUG 03 2014
    8/3/2014
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

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

    Re: Convert text string to date

    Both work. Thanks

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Convert text string to date

    You can use Text to Columns to convert the strings into real dates. No formulas needed.

    Select the cells in question
    Data>Text to Columns
    Select Delimited
    Click Next twice
    In Step 3 of the Userform, under Column data format, select Date MDY
    Click Finish

    Format in the date format of your choice
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  6. #6
    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: Convert text string to date

    Glad to have assisted and thanks for the rep.

+ 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 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
  2. [SOLVED] Extract Text from String then Convert to a Date (Month/Year)
    By sgrey24 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2013, 06:11 PM
  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