007007970 export to excel it change into 7007970
007007970 export to excel it change into 7007970
lihai
Posts: 15Questions: 0Answers: 0
My tbody has some data begin with 0,like 007007970,00113, 01204.I make the table export to excel.In the excel the data change into 7007970,113,1204.How to slove it?
The table:
007007970 00113 01204
The EXCEL:
7007970 113 1204
The table:
007007970 00113 01204
The EXCEL:
7007970 113 1204
This discussion has been closed.
Replies
Allan
Allan
In Excel, select the cells and change the cell format to text and you should see the full text.
Allan
Allan
[code]
Rendering engine
Browser
Platform(s)
Engine version
CSS grade
[/code]
into
[code]
00101
0201
00000001
Engine version
CSS grade
[/code]
Then use the tabletools to export to excel.That you will see what I say.
[code]
00101,0201,00000001,Engine version,CSS grade
[/code]
without exporting an xls file, TableTools can't do anything else. Yes, exporting an xls file would be good, but it is not trivial.
Allan
forgive my intrusion but don't blame tabletools, if you search you will find the answer. The problem lies within excel, when importing text files it uses the first row to check what type a field can be, assuming to be a number if it's possible to convert.
try this:
1 - Open your exported .csv file in notepad or any desired text editor.
2 - Copy the entire content.
3 - Open Excel Sheet and change the format of entire column A to "text".
4 - Paste your content and then use "Text to Column" option in excel.
5 - Choose Delimited option, provide comma as separator.
6 - In the next screen change the format of your desired fields as per you requirements and you are done.
hope this would help.
http://excel.tips.net/T002752_Pasting_Leading_Zeroes.html
In short what I do is that I paste the data to excel, change the erroneous columns' format to text and paste again and leading zeros will be there.
Another option would be to open the file form Excel's File Open Dialog. It should then open the Text Import Wizard where text columns could be marked as text instead of general. I think sometimes I've had to change the file format to .txt to prevent some versions of Excel to automatically open the .csv file.
-jari