#1   Report Post  
Brent E
 
Posts: n/a
Default Format Cols

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  
CLR
 
Posts: n/a
Default

TEXT formatting should work fine........

Highlight the column, Right-click . FormatCells NumberTab select TEXT
OK........then enter your numbers with the leading zeros.....and all the
rest of the numbers........they will be all left-justified.

If you are copying something to the column, then use "PasteSpecial Values"
to prevent the formatting being changed during copying.....

Vaya con Dios,
Chuck, CABGx3


"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.



  #3   Report Post  
Max
 
Posts: n/a
Default

And if you want it as numbers but displaying the leading zeros,
try selecting the col, then:
Format Cells Custom
Enter in the "Type:" box: 000000 (say)

Now if you enter:
99, it'll appear as: 000099
999 will appear as: 000999
and so on

Adapt to suit (the number of zeros in "Type" box)
--
Rgds
Max
xl 97
---
GMT+8, 1° 22' N 103° 45' E
xdemechanik <atyahoo<dotcom
----
"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.



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
Office2000: Conditional format behaves strangely Arvi Laanemets Excel Discussion (Misc queries) 1 April 7th 05 08:47 AM
Keep custom format in new worksheet Buddy Excel Discussion (Misc queries) 2 March 14th 05 10:03 AM
How to format a date to a different format Laura Excel Discussion (Misc queries) 1 March 5th 05 09:59 PM
protecting format Esmerelda Excel Discussion (Misc queries) 1 February 25th 05 12:53 PM
copy conditional format as ACTUAL format Dana Zulager Excel Discussion (Misc queries) 7 December 7th 04 11:02 PM


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