Discussion Locked

convert number to text in csv format fil

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

When I produce a .csv excel file. The office will take everything as number if it starts with a digit. How can I convert it to text before I open the document. An example will make it clear. If the column contains value like "5e2", the office excel will take it as a number. But I want it as is.

Pls help

5 replies

by dklippert

Here are a couple of ways:
1) Edit the .csv file so that the entry 5e2 is changed to ="5e2". Excel will then know that it is text.
2) Change the extention to something like "DAT" or "TXT". This will cause the Import Wizard to open and you can define the problem column as text.

by lo

I checked with formatting set to General and Text, same results, 5e2 is a number. In addition to above, try doing the entry for 5e2 as '5e2 when you enter into the cell (or edit the cell and put the single quote into the cell. This worked for both General and Text formatting. I have done this when Excell took a field as numeric and I didn't want it numeric. lo

This discussion is closed to new replies.