+ Reply to Thread
Results 1 to 11 of 11

Convert Text Date to Dates

  1. #1
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Convert Text Date to Dates

    hi

    I need a formula to convert the below text dates to Date Format.

    26/05/2020 02:58:14 PM to 5/26/2020 02:58:14 PM

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,813

    Re: Convert Text Date to Dates

    If you want to keep the word "to" between those dates then they will be in text format. You will need to have two separate columns, one for the start date/time and the other for the finish date time.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    03-23-2020
    Location
    UMINA BEACH, NSW
    MS-Off Ver
    2019
    Posts
    21

    Re: Convert Text Date to Dates

    Custom format m/d/yyyy h:mm:ss AM/PM

  4. #4
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: Convert Text Date to Dates

    In addition to Pete's comment, you might want to explain to us about the mixed date formats (the first is dd/mm/yyyy while the second is m/dd/yyyy).

    Also, when you say "date format", do you mean dates without the times? Perhaps if you show us the expected result for the example you posted, that might help.
    Last edited by Rick Rothstein; 06-06-2020 at 09:19 PM.

  5. #5
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Convert Text Date to Dates

    Sorry for the confusion,

    This is the text date I have 26/05/2020 02:58:14 PM

    I need to convert result to this 5/26/2020 02:58:14 PM

  6. #6
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: Convert Text Date to Dates

    Before giving you a solution, let's make sure it is the right solution. In this instance, one example does not convey the entire possible problem. Do you think you have any dates that are "correct" in your list? In other words, do you have a column of real dates and text dates and are asking us to make only the text dates into real dates?

  7. #7
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Convert Text Date to Dates

    @Rick

    I have only one column (E) which is text date in this format dd/mm/yyyy hh:mm:ss AM/PM.

    In the next column (F) I need a formula to convert to real date format including time.

  8. #8
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: Convert Text Date to Dates

    Okay, I just wanted to make sure you had all text values and no "real" date values as that would have been a major problem. One more question... you text dates where the day number is less than 10, does it always have a leading zero or not? In other words for the date February 7, 2020, would your text date look like this...

    07/02/2020

    or this...

    7/02/2020

  9. #9
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Convert Text Date to Dates

    @Rick

    this is the format for less than 10, 01/06/2020 01:12:58 PM
    dd/mm/yyyy hh:mm:ss AM/PM

  10. #10
    Forum Guru
    Join Date
    04-23-2012
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 365
    Posts
    2,420

    Re: Convert Text Date to Dates

    Okay, good, that makes the formula easier. Give this formula a try...
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Note: You will probably have to Custom Format the cell you put the formula in to make it show both the date and time.

  11. #11
    Forum Contributor
    Join Date
    11-12-2012
    Location
    Jeddah, Saudi Arabia
    MS-Off Ver
    2010, 2013, 2016, Office 365
    Posts
    507

    Re: Convert Text Date to Dates

    @Rick,

    Thanks it's working, Noted...

+ 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 Dates to Date Values
    By mycon73 in forum Excel General
    Replies: 10
    Last Post: 02-15-2020, 03:00 PM
  2. [SOLVED] VBA to convert text dates to integer dates for entire column
    By benjhardie in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-26-2019, 05:31 AM
  3. [SOLVED] Dates stored as Text and Values - convert entire column to date?
    By happydays886 in forum Excel General
    Replies: 12
    Last Post: 01-05-2018, 12:13 PM
  4. Convert Text Dates to Real Dates?
    By NewYears1978 in forum Excel General
    Replies: 11
    Last Post: 04-20-2017, 07:42 PM
  5. VBA to loop different length text dates to convert to Dates
    By earlyfreak in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 06-13-2016, 06:15 PM
  6. Convert Text Dates, Perform Calculation, Convert back to Text
    By Orada in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-13-2012, 05:25 PM
  7. Convert Dates to text
    By lmullenjr in forum Excel General
    Replies: 3
    Last Post: 08-18-2006, 10:15 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