+ Reply to Thread
Results 1 to 5 of 5

Converting a text string to a date

  1. #1
    Registered User
    Join Date
    04-04-2017
    Location
    Sydney
    MS-Off Ver
    2013
    Posts
    9

    Exclamation Converting a text string to a date

    Hi,

    I have a text string which is "Apr 13, 2016 11:22 AM". How do I convert this to a date format which can be used in further calculations (for example finding the difference between two dates)?

    I've tried DATEVALUE which returns error. I don't want to edit my data source by using text to column function either..

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

    Re: Converting a text string to a date

    Try:

    =A1+0

    Or:

    =--LEFT(A1,12)

  3. #3
    Registered User
    Join Date
    04-04-2017
    Location
    Sydney
    MS-Off Ver
    2013
    Posts
    9

    Re: Converting a text string to a date

    LEFT separates my date but I want to convert the 'Apr 13, 2016' to '13-04-16'

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

    Re: Converting a text string to a date

    Format Cells -> Custom -> dd-mm-yy

  5. #5
    Registered User
    Join Date
    04-04-2017
    Location
    Sydney
    MS-Off Ver
    2013
    Posts
    9

    Re: Converting a text string to a date

    This problem is solved thanks

+ 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] Converting a text string date+time
    By Mauro1234 in forum Excel General
    Replies: 3
    Last Post: 03-01-2017, 05:39 AM
  2. Converting text string to date
    By gueh in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-21-2016, 01:50 PM
  3. Converting a string of text into a date.
    By sungen99 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-26-2014, 01:23 PM
  4. Converting text string that contains a date and time to a date
    By jmforde in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-12-2013, 02:31 PM
  5. Converting a text string to date and time
    By stephboucher in forum Excel General
    Replies: 1
    Last Post: 03-21-2012, 02:28 PM
  6. Converting Text String to Date Format
    By mccrimmon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-14-2007, 11:09 AM
  7. [SOLVED] Converting Date to Text String
    By John Calder in forum Excel General
    Replies: 3
    Last Post: 04-08-2005, 07:06 AM

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