Forum Discussion
.CSV export incorrectly converting text to date
- 6 years ago
amitchandak, WordPad shows that it's exporting correctly. It's only when I open in Excel that it coverts. I'll try to use the import wizard in Excel to better control the data types.
Thanks for the reply, amitchandak. If you look at my post, you can see that the data is already formatted as text.
As shown in OP:
The "ABC" indicates it's text
It appears that the conversion is taking place during the export process.
Are you opening CSV in excel? If so please open it in Textpad and check. Excel might convert this.
- tbauch6 years agoFrequent Visitor
amitchandak, WordPad shows that it's exporting correctly. It's only when I open in Excel that it coverts. I'll try to use the import wizard in Excel to better control the data types.
- tbauch6 years agoFrequent Visitor
That did it. Thanks for walking me through the thought process.
- amitchandak6 years agoSuper User
Excel will treat is as text when it starts with '. But not sure the same is true when you export it like '2010-02-02