How do I preserve leading zeros in Excel?

K

Keli

I want to put numbers that start with 1 or more 0s (i.e. 0001 or 0399) into a
cell but it keeps truncating the 0s. How can I get the number to stick
without storing it as text?
 
P

Paul B

Keli, put a ' in front of it, it want show in the cell
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 2003
** remove news from my email address to reply by email **
 
G

Gord Dibben

Keli

"Without storing as Text" cannot be done.

If you want to keep numeric, you can use a Custom Format of 0000

Enter your number 1 and will display as 0001

399 will display as 0399

Gord Dibben Excel MVP
 
Top