A zero as a first digit

Q

QV

How can I get in a cell a zero as a first digit, for instance 01102008?
I'm using Excel 97. Thanks in advance!
QV
 
S

Stefi

I cannot test it in Excel 97 but maybe some of the methods available in Excel
2003 work also in 97.

1. Format cell like text.
2. Put an apostrophe (') before digits: '01102008
3. If all cells are of the same length (say 8 digits) then custom format
cells with format code "00000000" (8 zero digits)

Regards,
Stefi

„QV†ezt írta:
 
D

David Biddulph

To add to Stefi's reply number 1, the cell needs to be formatted as text
*before* you enter the number. Once Excel has stored the data as a number,
rather than text, then reformatting the cell subsequently as text won't
retrieve the leading zeroes which have already been lost.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top