How to suppress leading zeros in Excel

G

Guest

I recieve a spreadsheet that has phone stored as a 10 digit number. I need
to parse it to end up with 3 columns; AreaCode, Exchange, Extension. I use
Text to Columns to split this. The problem I have is that leading zeros are
suppressed. For example if an extension is 0040 the leading zeros are
suppressed and it is displayed as 40. How can I make sure it is always
displayed as a 4 digit number?
 
N

Niek Otten

Format>Cells>Number tab, Custom. In the Type box, enter 0000

--
Kind regards,

Niek Otten

Microsoft MVP - Excel
 
D

Dave Peterson

Make the format of the field Text instead of General (when you do your data|Text
to columns).
 

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