View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
SVC
 
Posts: n/a
Default How do I keep 2 zero's in front of s/n in a cell

It might be that you have a mixture of number and text items. Try this:

1. In a blank cell type the number one (1).
2. Copy the cell.
3. Select the entire range with you inventory numbers.
4. Edit Paste Special, under Operation select Multiple, then click OK.
5. Now try applying the Custom format.

Alternately, if the numbers are already text, you can concatenate. If A1
contains, e.g. 123456, in a blank cell in row 1 type ="00"&a1, then copy
down. This will add leading 00 to the number. When done, copy the entire
column, then Edit Paste Special, select Value.

"klieske" wrote:

Is there a way to fix this on preexisting spreadsheets? It is pretty long
and I tried it that way but it wouldn't change. Thanx...Kelly

"SVC" wrote:

If all the numbers in your column have the same number of digits, use Format
Cell, on the Number tab select Custom and (based on a number with a maximum

length of 10 digits) enter 00##########. This will force the leading two 0's
to remain for any number up to 10 digits.

Alternately, you can format your colum as Text before entering numbers.

"klieske" wrote:

I have a long spreadsheet for my inventory in a library and for some reason
the 2 zero's will not stay after i put in a number. Such as: 0033995753.
The zero's get dropped and I cannot figure out how to get them back. I am
using Office Pro 2003. Thank you!