+ Reply to Thread
Results 1 to 4 of 4

Changing date/time format

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Changing date/time format

    All,

    I have been racking my brain out on this for several hours and have no answer, but know there must be an easier way to do this.

    I receive a CSV file and there are 3 columns labeled Call date, PartStarttime, & PartEndTime. Each of these columns is formated as general (because it is coming from a CSV file) and they represent the date and time (DD/MM/YYYY hh:mm:ss AM/PM).

    I need to reformat each of these so that Call Date is in the U.S. format of MM/DD/YYYY hh:mm:ss 24hr and the other 2 are simply just the time in 24 hour.

    I have attached it here and would appreciate any help.

    I have tried the Data-->Texts to Column, but that did not work.

    thanks
    Mike
    Attached Files Attached Files

  2. #2
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Changing date/time format

    That came through as a mixture of dates and text strings..
    Most show as just text strings, but a few (A13 and A14 for example) show up as real dates..

    But to get a date and time (seperately) from a Text string like
    28/01/2015 01:54:10 pm

    Try
    Date: =DATE(MID(A2,7,4),MID(A2,4,2),LEFT(A2,2))

    Time: =TIMEVALUE(RIGHT(A2,11))

    Format the cells with the formulas appropriately as Date and Time.

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    New Jersey, USA
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Changing date/time format

    Thanks. Exactly what I needed.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Changing date/time format

    You're welcome.

+ 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. modify date time cell to an excel format date time
    By rileyp in forum Excel General
    Replies: 12
    Last Post: 03-24-2013, 08:39 PM
  2. [SOLVED] Changing Multiple sheet names by wk ending date for yr but need specific name/date format
    By kedeling in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-06-2013, 02:40 PM
  3. [SOLVED] How do I convert imported date/time data to date/time format?
    By andykent99 in forum Excel General
    Replies: 4
    Last Post: 01-03-2013, 07:47 AM
  4. Changing number to date time format
    By Saw-whet Owl in forum Excel General
    Replies: 6
    Last Post: 12-10-2012, 08:15 PM
  5. Changing format of Time/Date
    By flea_bateman in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-03-2007, 11:46 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