Is there a way to format a cell so that in a string of number if a 0 is in front it stays there. For example I will type in 007486 but I can only get it to show up as 7486.
Thanks I tried formatting it to text before but I was not reentering the number in. So no 0's were still in front, but when I did reenter the number it worked great.
Thanks again
If you want to really preserve the underlying value, you need to format the cells as text (for instance, zip codes). You can't do math with text (not easily, anyway) -- it's normally for ID's and zips, etc.
Hi and welcome to the board!!!
My good friend Smitty gave you the practicle answer. You can, however, use Custom Formatting. Format>Cells>Number Tab. Choose Custom for category and for type enter as many zeros as you want. (Ex 000000). This will display the number with leading zeros, and you don't have to type them in. Excel will figure it out. The advandage is the cell still contains a number for calculation purposes. With my above format, entering 7486 will display as 007486
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.