+ Reply to Thread
Results 1 to 4 of 4

Stop Excel from trying to parse dates

  1. #1
    Registered User
    Join Date
    03-14-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    8

    Stop Excel from trying to parse dates

    In my shop, I need to open CSV files in Excel. However, some of the fields in one of the CSV files look like dates, e.g. JAN22, MAR15, etc. In reality these are not dates. Excel though treats them like dates. The result is that the data from the CSV file is corrupted once loaded. I must go through a process of identifying fields that are dates and setting them back to text. (so I see 11-Sep and change it back to SEP11 as text).

    How can I change my process or change Excel's options to prevent the auto-date parsing? I'm finding that my manual process to correct the data once loaded is not only tedious but error-prone.

    Note (untested). I also suspect that if my CSV file contained data like 3.14159, Excel would think it is a number, instead of the text that it is.

  2. #2
    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
    52,945

    Re: Stop Excel from trying to parse dates

    Do you have a sample file we could play with?
    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

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,850

    Re: Stop Excel from trying to parse dates

    When using the File - Open command or double clicking on a CSV file, Excel opens the file based on its default values. If you will change the file extension to .txt, so that Excel sees it as a "text" file rather than a CSV file (which are the same thing, all you are changing is how Excel works the open command), then Excel will prompt you with the Text Import Wizard, which will allow you to set options such as "treat this column as text and not number or date".
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    03-14-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Stop Excel from trying to parse dates

    Worked like a charm! Thanks!!!

+ 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] Stop Excel from changing numbers to dates in CSV file
    By Curt L. in forum Excel General
    Replies: 3
    Last Post: 11-04-2013, 12:26 PM
  2. stop Excel from reformating my dates
    By LuAnn in forum Excel General
    Replies: 3
    Last Post: 12-07-2007, 11:22 PM
  3. Stop Excel Automatically Converting Dates?
    By doomalyas in forum Excel General
    Replies: 3
    Last Post: 11-19-2007, 03:25 PM
  4. [SOLVED] Excel converts fractions into dates. Make it stop.
    By James Jensen in forum Excel General
    Replies: 1
    Last Post: 08-04-2006, 09:50 AM
  5. [SOLVED] Stop Excel Rounding Dates
    By leinad512 in forum Excel General
    Replies: 1
    Last Post: 04-20-2005, 12:06 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