Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Jeff
 
Posts: n/a
Default retain leading zeros in number format

I'm sure this must be a basic question: I need to have numbers in a
particular column which begin with three leading zeros as in 000123 but
Excel automatically discards them. I can't find a format in the number
category which retains them. How do I do it please?

Thanks


  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

000000

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Jeff" <no_em@ilplease wrote in message ...
I'm sure this must be a basic question: I need to have numbers in a
particular column which begin with three leading zeros as in 000123 but
Excel automatically discards them. I can't find a format in the number
category which retains them. How do I do it please?

Thanks




  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

If it is always 6 digits use custom format and 000000, if you need to export
it use text
format

--

Regards,

Peo Sjoblom

"Jeff" <no_em@ilplease wrote in message ...
I'm sure this must be a basic question: I need to have numbers in a
particular column which begin with three leading zeros as in 000123 but
Excel automatically discards them. I can't find a format in the number
category which retains them. How do I do it please?

Thanks




  #4   Report Post  
Earl Kiosterud
 
Posts: n/a
Default

Jeff,

Format - Cells - Number - Custom tab:

0000000
--
Earl Kiosterud
mvpearl omitthisword at verizon period net
-------------------------------------------

"Jeff" <no_em@ilplease wrote in message ...
I'm sure this must be a basic question: I need to have numbers in a
particular column which begin with three leading zeros as in 000123 but
Excel automatically discards them. I can't find a format in the number
category which retains them. How do I do it please?

Thanks



  #5   Report Post  
BobT
 
Posts: n/a
Default

If formatting doen't help you can use ="000"&A1
Where A1 is the number that won't hold its lead zeroes

I've used the following for 5 digits zip codes when mail
merge in Word won't hold the lead zeroes in the Northeast
(US)
=IF(LEN(A1)<2,0,"")&IF(LEN(A1)<3,0,"")&IF(LEN(A1)< 4,0,"")
&IF(LEN(A1)<5,0,"")&A1

If any you wish to improve this please post it.

-----Original Message-----
I'm sure this must be a basic question: I need to have

numbers in a
particular column which begin with three leading zeros as

in 000123 but
Excel automatically discards them. I can't find a format

in the number
category which retains them. How do I do it please?

Thanks


.



  #6   Report Post  
Jeff
 
Posts: n/a
Default

Thanks guys, that did it!

"Jeff" <no_em@ilplease wrote in message ...
I'm sure this must be a basic question: I need to have numbers in a
particular column which begin with three leading zeros as in 000123 but
Excel automatically discards them. I can't find a format in the number
category which retains them. How do I do it please?

Thanks



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
leading zeros in text format BigBrook Excel Discussion (Misc queries) 5 December 11th 08 08:00 PM
Format a cell to keep leading zeros. Shadyhosta New Users to Excel 5 July 27th 05 04:37 PM
Leading zeros JC Excel Discussion (Misc queries) 9 February 1st 05 02:33 PM
Telephone number format MarkT Excel Discussion (Misc queries) 6 January 18th 05 10:39 PM
How to format a number in Indian style in Excel? Victor_alb Excel Discussion (Misc queries) 2 December 21st 04 04:21 AM


All times are GMT +1. The time now is 11:02 AM.

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"