+ Reply to Thread
Results 1 to 6 of 6

Convert Date to Text

  1. #1
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Convert Date to Text

    Hello -

    I want to convert an entire column from a csv file with the following type of date formatting 12/18/2018 0:00 to entire column with text formatting in an xlsx file as 12/18/2018 12:00 AM. How can I do this?

  2. #2
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Convert Date to Text

    Once you have the info in Excel file, use existing format (Home/ Format/ Format Cells/ Number tab) under date - select '3/14/12 1:30 PM' OR create a custom format - where it shows 'Type:' you would enter 'mm/dd/yyyy hh:mm AM/PM' (exclude the single quote marks)

  3. #3
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Re: Convert Date to Text

    I'm trying to automate the process though so I need to know how to do it with a macro. I am able to change the other fields just fine. I am only have trouble with this date field.

  4. #4
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Convert Date to Text

    If you in a spare cell put the formula =ISNUMBER(A2) changing the A2 to a cell reference with one of the dates in it, does it give FALSE?
    If it does what happens if you select the column then on the ribbon click Data - Text to Columns, click Next twice and click Finish?
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  5. #5
    Forum Expert
    Join Date
    10-06-2017
    Location
    drevni ruchadlo
    MS-Off Ver
    old
    Posts
    2,261

    Re: Convert Date to Text

    Quote Originally Posted by bvwalker1 View Post
    1. I'm trying to automate the process ...
    2. ... so I need to know how to do it with a macro.
    3. ... I am only have trouble with this date field.
    Ad 1. and 3. All you need is a simple function "Text", e.g.:
    Please Login or Register  to view this content.
    , if the dates to be converted are in the cells of the "A" column.

    Ad 2. Here the macro is not needed, although of course it can be "made" (but we must pay attention to the system date separator).

  6. #6
    Forum Contributor
    Join Date
    10-12-2018
    Location
    Leesburg, FL
    MS-Off Ver
    2013
    Posts
    113

    Re: Convert Date to Text

    Quote Originally Posted by porucha vevrku View Post
    Ad 1. and 3. All you need is a simple function "Text", e.g.:
    Please Login or Register  to view this content.
    , if the dates to be converted are in the cells of the "A" column.

    Ad 2. Here the macro is not needed, although of course it can be "made" (but we must pay attention to the system date separator).
    Thank you!

+ 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 date in to a date format excel can read
    By BC TIPPING in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 12-03-2017, 02:49 AM
  2. [SOLVED] Convert text-formatted date to regular date
    By jwengiel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-03-2017, 06:04 PM
  3. [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
  4. [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
  5. [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
  6. 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
  7. Replies: 1
    Last Post: 03-31-2010, 05:03 PM

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