#1   Report Post  
Brent E
 
Posts: n/a
Default Leading digits

I've got an Excel workbook that contains many license numbers and I need to
format the column so that if a license number has several 0s in front, they
aren't automatically truncated by Excel. I tried general, number, and text
formats but they truncate leading 0s. Any ideas? Thanks.
  #2   Report Post  
Michael
 
Posts: n/a
Default

Hi Brent
Put an apostrophe in front of the number, eg.

'00045879
this will enforce the zeros to be displayed


HTH
Michael
--
Michael Mitchelson


"Brent E" wrote:

I've got an Excel workbook that contains many license numbers and I need to
format the column so that if a license number has several 0s in front, they
aren't automatically truncated by Excel. I tried general, number, and text
formats but they truncate leading 0s. Any ideas? Thanks.

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

Custom form at of

000000

or however many

--

HTH

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


"Brent E" wrote in message
...
I've got an Excel workbook that contains many license numbers and I need

to
format the column so that if a license number has several 0s in front,

they
aren't automatically truncated by Excel. I tried general, number, and text
formats but they truncate leading 0s. Any ideas? Thanks.



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

Custom form at of

000000

or however many

--

HTH

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


"Brent E" wrote in message
...
I've got an Excel workbook that contains many license numbers and I need

to
format the column so that if a license number has several 0s in front,

they
aren't automatically truncated by Excel. I tried general, number, and text
formats but they truncate leading 0s. Any ideas? Thanks.



  #5   Report Post  
Brent E
 
Posts: n/a
Default

Thanks guys, I'll try those ideas. I forgot about that apostope. cool. And
the customer sounds like a good way too, but I am curious, how do I do that
if the amount of leading 0s may be different for different numbers? Thanks
again guys.

"Michael" wrote:

Hi Brent
Put an apostrophe in front of the number, eg.

'00045879
this will enforce the zeros to be displayed


HTH
Michael
--
Michael Mitchelson


"Brent E" wrote:

I've got an Excel workbook that contains many license numbers and I need to
format the column so that if a license number has several 0s in front, they
aren't automatically truncated by Excel. I tried general, number, and text
formats but they truncate leading 0s. Any ideas? Thanks.



  #6   Report Post  
Kev Joy
 
Posts: n/a
Default

You could put the following into a cell
'000

then add that to your licence number using &

i.e. =A15&B16

"Brent E" wrote:

I've got an Excel workbook that contains many license numbers and I need to
format the column so that if a license number has several 0s in front, they
aren't automatically truncated by Excel. I tried general, number, and text
formats but they truncate leading 0s. Any ideas? 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
Least number of digits in Y-axis labels Charley Kyd Charts and Charting in Excel 9 February 6th 05 03:03 PM
Leading zeros JC Excel Discussion (Misc queries) 9 February 1st 05 02:33 PM
How do I display leading zeros so I can export a fixed in Excel? World Referee and accountant Excel Discussion (Misc queries) 2 January 3rd 05 04:18 PM
How to add leading 0 to four digit number? Calendar Control Excel Worksheet Functions 2 December 30th 04 09:53 PM


All times are GMT +1. The time now is 03:59 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"