+ Reply to Thread
Results 1 to 5 of 5

convert text into date

  1. #1
    Registered User
    Join Date
    02-09-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    31

    convert text into date

    I'm working on a spreadsheet where I have the text 'Saturday 4 October 2014'. I want to convert this into an actual date.
    Can anyone help?

    Regards,
    Tim

  2. #2
    Forum Expert boopathiraja's Avatar
    Join Date
    07-12-2013
    Location
    Coimbatore,TamilNadu, India
    MS-Off Ver
    Excel 2007, 2013, 2016, 365
    Posts
    1,455

    Re: convert text into date

    Try with =DATEVALUE() else post a sample in excel
    Click just below left if it helps, Boo?ath?

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: convert text into date

    If the dates you need converted are all in the same format you can use this

    =RIGHT(A1,LEN(A1)-FIND(" ",A1))

    It will take all text after the first occurance of SPACE (right after the "day")

    So 'Saturday 4 October 2014'
    becomes
    '4 October 2014'

    Which excel can read as a date

    You can further convert it into a date format using
    =TEXT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),"mm/dd/yyyy")
    Last edited by Speshul; 10-01-2014 at 03:11 PM.
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: convert text into date

    I came up with this, which may have redundant parts in order to try and eliminate any oddities that may occur. This will result in a date serial number.

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


    Format in the date format of your choice.
    Last edited by newdoverman; 10-01-2014 at 03:38 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: convert text into date

    I didn't think of it before but assuming the ' marks are included in the cell you can use either of these as well.

    =LEFT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),LEN(RIGHT(A1,LEN(A1)-FIND(" ",A1)))-1)
    Or
    =TEXT(LEFT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),LEN(RIGHT(A1,LEN(A1)-FIND(" ",A1)))-1),"mm/dd/yyyy")


    newdoverman's formula is probably more robust if there are variances in the data. My formula assumes there will always be:

    'WEEKDAY[SPACE]DAY#[SPACE]MONTH[SPACE]YEAR]'

+ 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] How to convert exported text date to desired date format with excel vba.
    By sktneer in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 10-03-2013, 01:08 AM
  2. [SOLVED] Use VBA to run "text to columns' Loop on first row to convert from text to date format
    By csmiley in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-03-2013, 02:06 PM
  3. Formula to convert text to a date in a date format
    By mikeburg in forum Excel General
    Replies: 5
    Last Post: 08-24-2011, 09:15 AM
  4. Replies: 1
    Last Post: 03-31-2010, 05:03 PM
  5. Help: How do I convert a text date into a real date format
    By japorms in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2006, 01:36 PM

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