+ Reply to Thread
Results 1 to 6 of 6

How to change date/time format from csv files

  1. #1
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    How to change date/time format from csv files

    Hi all
    I download data that comes in csv format with date/time like this:

    1/11/2015 16:00

    I need to change this to 11/01/2015 16:00 when pasted into an .xlsx file but the format cells function does not change it for me.

    Cheers
    hammer

  2. #2
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: How to change date/time format from csv files

    Try this
    =text(trim(1/11/2015 16:00),"mm/dd/yyyy h:mm")
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Punnam

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: How to change date/time format from csv files

    Use Text to Columns to split the date/time using a space as the delimiter and output to two "spare" columns. In the dialogue, select the first column and format it as DMY. Then, in a third column, add the date and time columns and format as you wish.

    Then, copy the third column and Paste Special | values and number formats over the original.

    Now you can delete the three helper columns.

    Probably sounds more complicated than it is

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Contributor
    Join Date
    06-25-2011
    Location
    Sydney
    MS-Off Ver
    Excel 2016
    Posts
    615

    Re: How to change date/time format from csv files

    Thanks to you both

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,425

    Re: How to change date/time format from csv files

    You're welcome. Thanks for the rep.

  6. #6
    Forum Expert
    Join Date
    03-28-2014
    Location
    Hyderabad,India
    MS-Off Ver
    Excel 2013
    Posts
    1,887

    Re: How to change date/time format from csv files

    Hi hammer2
    Thank for the reputation points
    Punnam

+ 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. Default date/time format when importing CSV files
    By eb6930 in forum Excel General
    Replies: 3
    Last Post: 09-02-2015, 07:40 PM
  2. Need vba code to change date&time stamp as date format dd-mmm-yy in A:A rng
    By breadwinner in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2014, 06:08 AM
  3. Rename Files in Folder - Change Date Format
    By karma4910 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2011, 05:24 PM
  4. Change Date format for CSV files
    By Guert999 in forum Excel General
    Replies: 3
    Last Post: 07-28-2011, 06:26 PM
  5. [SOLVED] how do I format cells to change date and time to just date
    By bondam in forum Excel General
    Replies: 3
    Last Post: 07-03-2005, 09:05 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