ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   HTML to Excel: preceding 0's disappear?! (https://www.excelbanter.com/excel-discussion-misc-queries/17166-html-excel-preceding-0s-disappear.html)

yung

HTML to Excel: preceding 0's disappear?!
 
I have a table in an HTML file
There is a column of data with values like 01, 02, 003...
i.e.
.....
<tr<td01</td</tr
<tr<td02</td</tr
<tr<td003</td</tr
.....
When I open it with Excel, all the preceding 0's disappear (i.e. they become
1, 2, 3, ... )
How can I show the original data with all the preceding 0's kept unchanged?

Thanks!!!


Yung



Nick Hodge

Yung

and a single apostrophe to the front in the HTML (')

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
HIS


"yung" wrote in message
...
I have a table in an HTML file
There is a column of data with values like 01, 02, 003...
i.e.
....
<tr<td01</td</tr
<tr<td02</td</tr
<tr<td003</td</tr
....
When I open it with Excel, all the preceding 0's disappear (i.e. they
become
1, 2, 3, ... )
How can I show the original data with all the preceding 0's kept
unchanged?

Thanks!!!


Yung






All times are GMT +1. The time now is 10:06 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com