+ Reply to Thread
Results 1 to 5 of 5

How do I convert imported date/time data to date/time format?

  1. #1
    Registered User
    Join Date
    05-23-2011
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2010, Access 2010
    Posts
    15

    How do I convert imported date/time data to date/time format?

    I have loaded a .csv file in which the first column contains date/times, e.g. 01/12/2012 00:00. How do I now tell Excel (2010) that this is in fact a date/time format? If I select one or more of the cells, click on the Number dialog box launcher and try to pick a suitable format tghe cells resolutely refuse to budge from being text (i.e. left-justified, still allows me to edit the 'seconds' component to a number > 60). Also which data type should I be using? The only one that appears to have a full date/time format listed is Custom (not Date or Time). My locale is English UK.

    Many thanks
    Andy

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: How do I convert imported date/time data to date/time format?

    Andy

    Try selecting the column with the date/times, going to Data>Text to column and pressing Finish.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    05-23-2011
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2010, Access 2010
    Posts
    15

    Re: How do I convert imported date/time data to date/time format?

    That doesn't seem to want to work for me. Attaching a selection of the workbook.
    Attached Files Attached Files

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: How do I convert imported date/time data to date/time format?

    Looks like you have a "leading space" with each of those entries. I used Data > Text to columns > Fixed width, then moved the line so that it's just to the left of the first part of the date > Select next and then with the small first column selected choose the "do not import" option > Finish
    Audere est facere

  5. #5
    Registered User
    Join Date
    05-23-2011
    Location
    Bristol, UK
    MS-Off Ver
    Excel 2010, Access 2010
    Posts
    15

    Re: How do I convert imported date/time data to date/time format?

    Awesome - that's the one. Didn't spot the leading space. Thanks both.

    Andy

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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