+ Reply to Thread
Results 1 to 5 of 5

Converting text to date

  1. #1
    Registered User
    Join Date
    03-19-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    37

    Thumbs up Converting text to date

    Hi,

    I am trying to covert text in a cell like this: Nov 23 2011 into a date formatted like this: mmm/d/yy

    I've tried the datevalue and a few other things but I can't seem to get it to work

    Any help would be appreciated!
    Thanks!
    Last edited by wace; 11-28-2011 at 04:14 PM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,577

    Re: Converting text to date

    Have you tried using "Text to Columns" on the Data tab? First format the cells to mmmm/d/yy and then do text to columns>Fixed length> Next>Date>Finish
    Does that work for you?
    ChemistB
    My 2

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert darkyam's Avatar
    Join Date
    03-05-2008
    Location
    Houston, TX
    MS-Off Ver
    2013
    Posts
    2,191

    Re: Converting text to date

    Or this should work =SUBSTITUTE(A1," ",", ",2)+0 You can then copy/paste as values and delete the original column.
    Life is about perseverance. Remember: today's mighty oak tree is just yesterday's nut that held its ground.

    If you like a post, please rate it with the scales icon (top right).
    If you feel really indebted, please consider a donation to charity, such as Feed the Children or Habitat for Humanity.

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

    Re: Converting text to date

    Alternative, formula solution:
    =TEXT(SUBSTITUTE(A1," ",", ",2),"mmm/d/yy")
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  5. #5
    Registered User
    Join Date
    03-19-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2011
    Posts
    37

    Re: Converting text to date

    Worked.
    You're a legend!
    I used the text to column approach, but tried the others and they work great too!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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