+ Reply to Thread
Results 1 to 6 of 6

Excel 2007 : Import of date time data fails

Hybrid View

ns.robert Import of date time data fails 06-30-2012, 07:41 PM
dmang1 Re: Import of date time data... 06-30-2012, 07:54 PM
dmang1 Re: Import of date time data... 06-30-2012, 07:54 PM
FDibbins Re: Import of date time data... 06-30-2012, 08:01 PM
martindwilson Re: Import of date time data... 06-30-2012, 08:07 PM
dmang1 Re: Import of date time data... 06-30-2012, 08:11 PM
  1. #1
    Registered User
    Join Date
    04-24-2011
    Location
    New Glasgow, Canada
    MS-Off Ver
    Excel 2010
    Posts
    2

    Import of date time data fails

    I am trying to work with large data files available only as a .txt file (comma separated data).

    Company A provides it as dd/mm/yy hh:mm:ss. The import function cannot handle this.

    Company B provides the data as mm/dd/yy hh:mm:ss

    The import function works fine if A and B do not include the time.

    My example is simple. Paste the following into notebook and attempt to import it. The dates are June 12 and June 13.

    DAY MONTH,MONTH DAY
    12/06/12 18:06:12,6/12/12 18:06:12
    13/06/12 18:06:12,6/13/12 18:06:12

    I have found work around. Changing my regional setting from English(US) to (English(UK) will allow me to import company A. It's a ugly solution.
    ns.robert

  2. #2
    Registered User
    Join Date
    06-20-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Import of date time data fails

    Try a formula like this on your English date to convert to American numbering:

    =TEXT(A2,"mm/dd/yyyy")

    where A2 is your imported date.

    Let me know how you go.

    Cheers,
    Diana

  3. #3
    Registered User
    Join Date
    06-20-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Import of date time data fails

    Try a formula like this on your English date to convert to American numbering:

    =TEXT(A2,"mm/dd/yyyy")

    where A2 is your imported date.

    Let me know how you go.

    Cheers,
    Diana

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Import of date time data fails

    @dmang1. did you post the same reply twice, or is it just appearing twice? just curious
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Import of date time data fails

    import but use both , and space as delimiters set the first field to dmy and the other date field to mdy
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Registered User
    Join Date
    06-20-2012
    Location
    Melbourne Australia
    MS-Off Ver
    Excel 2010
    Posts
    75

    Re: Import of date time data fails

    Hello fdibbins,

    I was having issues and did press the Post Quick Reply button twice.

    Diana

+ 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