+ Reply to Thread
Results 1 to 5 of 5

How can see data as-is ('0123' and not '123') when open excel file

  1. #1
    HarCo
    Guest

    How can see data as-is ('0123' and not '123') when open excel file

    When I open a csv file in excel any preceding '0' will disapear. How can I
    see the data exactly as it is in the csv\text file? (e.g. if my data contain
    telephone numbers with area code that has preceding '0' it will be removed).

  2. #2
    Forum Contributor
    Join Date
    12-02-2004
    Location
    London
    Posts
    255
    Change the file name of the csv file from xyz.csv to xyz.txt. When you open this in Excel it should fire off the text import wizard, in one of the 3 stages you can define the column types, for your column with text that has leading zero, define the column type as text and this should solve your problem.

  3. #3
    Peter Jausovec
    Guest

    RE: How can see data as-is ('0123' and not '123') when open excel file

    Hi,

    CVS file doesn't inlcude information about formatting. So eventhough if you
    change the cell formatting to text and enter e.g. 000555555 the leading zeros
    will be lost. The workaround is to write the phone no. maybe like this (000)
    555-555 or enter some char before the zeros.

    --
    http://blog.jausovec.net

    "HarCo" je napisal:

    > When I open a csv file in excel any preceding '0' will disapear. How can I
    > see the data exactly as it is in the csv\text file? (e.g. if my data contain
    > telephone numbers with area code that has preceding '0' it will be removed).


  4. #4
    Dave Peterson
    Guest

    Re: How can see data as-is ('0123' and not '123') when open excel file

    Rename your .csv file to .txt.

    Then when you open the .txt file, you'll get the import wizard where you can
    specify the format of each field--including Text for this field.

    HarCo wrote:
    >
    > When I open a csv file in excel any preceding '0' will disapear. How can I
    > see the data exactly as it is in the csv\text file? (e.g. if my data contain
    > telephone numbers with area code that has preceding '0' it will be removed).


    --

    Dave Peterson

  5. #5
    Dare
    Guest

    RE: How can see data as-is ('0123' and not '123') when open excel file

    You can solve this problem if you type a character ' in front of zero i. e.
    '0123 shovs 0123

    "HarCo" je napisal:

    > When I open a csv file in excel any preceding '0' will disapear. How can I
    > see the data exactly as it is in the csv\text file? (e.g. if my data contain
    > telephone numbers with area code that has preceding '0' it will be removed).


+ 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