Keep leading zero in number
Excel
There is two ways to show the leading zero. Click the tip you need assistance with
Thank you Paul for this tip
If you always want a zero or a number of zeros to show up before the number, this procedure will show you how.
When you type
|
Excel cuts off the zero so it looks like this
|
If you want the leading zero to show, use the apostrophe
|
Place the apostrophe before the zero
|
Now the leading zero will show
|
The difference between using the apostraphe and using format is as follows
-
Using apostrophe, All leading zeros will show. Example
-
If I typed '033, Excel will show 033
-
If I typed '0333, Excel will show 0333
-
If I typed '0033, Excel will show 0033
-
No matter what number you type, the number of zeros you typed will always show
-
-
This is different from using Format. Format will only show the zero if the placeholder is under 9. See Use Format for more information.
This feature will allow you to show the leading zero (ifIf you need to show the leading zero but limit how high of a number that you can use, use the following
This tip is from elijournels and pasted here to prevent broken links and guarantee that you have access to the information. To see the information on that site click here (
I cannot guarantee the link is still valid)When your in Excel and try to enter a number such as 0244, Excel cuts off the 0 and only shows 244. If you need the number to show than do the following
- Open Excel
- Select the cell or cells that you want the leading zeros to show
|
- Right-click the cell and click Format Cells dialog box
|
- Select Custom from the Category list box
|
- In the Type text box, enter the number of 00000 that is the
same number that you are entering. For example,
- If you want to show 02 through 09- enter 00
- It will show a leading zero up to 09. The max number you can type is 99
- If you want to show 002 through
099 - enter 000
- It will show a leading zero up to 099. The max number you can type is 999
- If you want to show 0002 through
0999 - enter 0000
- It will show a leading zero up to 0999. The max number you can type is 9999
- and so on
- If you want to show 02 through 09- enter 00
|
- Click OK to apply the change
|
Note: with this option, The zero will only appear, if it is under a specific number. If you set format to 000, then it will only show the zero up to 099. When you type 100 there will be no leading zero. However you are not limited to how large the number can be. You can type 455022 if you want. However there will not be a leading zero. If you always want a leading zero to show, use Keep all leading zeros.