ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Why does the initial zero in "01625" in a number cell disappear? (https://www.excelbanter.com/excel-discussion-misc-queries/162423-why-does-initial-zero-01625-number-cell-disappear.html)

Jon

Why does the initial zero in "01625" in a number cell disappear?
 
Using Excel I have formatted a cell for numbers and typed in "01625". When i
click enter the number changes to "1625". Other cells which seem to be
formatted in the same way retain the zero. If i type in 01625 531300 the
initial zero stays in place. Anyone know why.

Peo Sjoblom

Why does the initial zero in "01625" in a number cell disappear?
 
The ones that keep the zero are seen as text so if you are not going to
calculate with these numbers it is probably better to either precede any
entry with an apostrophe or format the cell as text prior to the entry.
Another option would be to use a custom format like 00000 which will display
as 01625 of course it will also display an entry of 3 as 00003


--


Regards,


Peo Sjoblom


"Jon" wrote in message
...
Using Excel I have formatted a cell for numbers and typed in "01625". When
i
click enter the number changes to "1625". Other cells which seem to be
formatted in the same way retain the zero. If i type in 01625 531300 the
initial zero stays in place. Anyone know why.




Max

Why does the initial zero in "01625" in a number cell disappear?
 
01625 531300

If you did not type/remove the space in the above,
you'll see that Excel treats it exactly the same way as it did
when you type: 01625
ie it'll be recognized as a number
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Jon" wrote:
Using Excel I have formatted a cell for numbers and typed in "01625". When i
click enter the number changes to "1625". Other cells which seem to be
formatted in the same way retain the zero. If i type in 01625 531300 the
initial zero stays in place. Anyone know why.



All times are GMT +1. The time now is 08:45 AM.

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