Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jay
 
Posts: n/a
Default How to suppress leading zeros in Excel

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?
  #2   Report Post  
Niek Otten
 
Posts: n/a
Default

FormatCellsNumber tab, Custom. In the Type box, enter 0000

--
Kind regards,

Niek Otten

Microsoft MVP - Excel

"Jay" wrote in message
...
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?



  #3   Report Post  
Dave Peterson
 
Posts: n/a
Default

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

Jay wrote:

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?


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 11:46 AM
Leading Zeros and decimal points Sam Excel Worksheet Functions 3 July 12th 05 12:40 PM
In Excel how can i enter in a value like 0021 without the zeros . Howie Excel Discussion (Misc queries) 0 February 2nd 05 07:41 PM
How do I format data cells in Excel to keep leading zeroes? LennyD Setting up and Configuration of Excel 2 December 15th 04 10:42 PM
numbers and text in Excel to read as text keeping the leading zer. Ralph Excel Discussion (Misc queries) 2 December 10th 04 07:05 PM


All times are GMT +1. The time now is 07:54 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"