+ Reply to Thread
Results 1 to 5 of 5

Override date-format

  1. #1
    Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 365
    Posts
    349

    Override date-format

    From a database I import to Excel a large table of mostly name codes.
    One of the codes is SEP01 for "Separator Type 1", but Excel thinks it is a date code and writes Sep-01 and stores the number 37135.
    Oother types are like NovaZeck-08, abbreviated NOV08 and you can imagine how Excel interprets that.

    Is there a way to avoid this confusion, eg a special set-up of Excel?


    NSV
    Last edited by nsv; 04-17-2009 at 02:15 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Override date-format

    When going through the import wizard, select that column in the Preview window of step 3 of the wizard. Then select Text from the column data format area. Continue on with the Wizard.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 365
    Posts
    349

    Re: Override date-format

    I'm afraid that is not possible as the file is delivered by the system as an Excel-file.
    I hoped it would be possible to set up Excel in a way that it converted date formats to text, but I am not optimistic.

    Thanks for your suggestetion anyway.


    NSV

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Override date-format

    Another suggestion might be to add a temporary helper column with a formula such as:

    =TEXT(G1,"mmmyy")

    Where G1 contains the first code and copy that formula down... you can then copy that column and paste Special >> Values over the original column and delete the temporary column

  5. #5
    Forum Contributor
    Join Date
    08-22-2005
    Location
    Denmark
    MS-Off Ver
    Excel 365
    Posts
    349

    Re: Override date-format

    Yes, it works - thanks for the advice.

    NSV

+ 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