Format cell to force a zero

ipbr21054

Well-known Member
Joined
Nov 16, 2010
Messages
5,226
Office Version
  1. 2007
Platform
  1. Windows
Hi,
My staff enter a numeric value into a cell.
This value needs to start with 0 but some staff keep forgetting and just enter say 12345 as opposed to 012345

Can you advise how this is formatted so next time a value without the 0 is entered then leaving the cell etc will add it.

Thanks
 
Just for info the format doesn't make any difference, it is just the underlying value.
 
Upvote 0

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
Hi,

If the number of digits in the cells are always supposed to be 6 (digits that is), i.e. 012345

You can also custom format the cells 000000
then zeros will always fill whatever is entered up to 6 digits.
 
Upvote 0
If the number of digits in the cells are always supposed to be 6 (digits that is), i.e. 012345

You can also custom format the cells 000000
then zeros will always fill whatever is entered up to 6 digits.
Of course that will only make the value appear to start with a zero, it wouldn't make the actual value start with a zero which is what I understood the OP to want:
This value needs to start with 0


Hi,
Ive just checked this again & now its working.
Strange.

Thanks very much.
You are welcome. Glad it is working for you now. :)
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,696
Members
449,048
Latest member
81jamesacct

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