General Question. Leading Zeros

eddieque

New Member
Joined
Feb 18, 2002
Messages
26
Is there a way to have a leading zero in a cell. I have an part number for example 0123456. When i enter it into a cell the zero disapears do I have 123456. I need the zero to be displayed.

Thank
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
If you just want the 0 to display then change your number formatting to a custom format of: 0000000. This will force there to be 7 digits displayed. If you actually need your number stored as 7 digits, then you'll have to look at the TEXT function.
 
Upvote 0
You can change the format to a custom format of 0000000. That will display a leading zero, but the zero won't actually be in cell (just the displayed format will change).

If you actually want a literal zero retained in your entry, format the column as Text.
 
Upvote 0

Forum statistics

Threads
1,221,701
Messages
6,161,381
Members
451,700
Latest member
Eccymarge

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top