![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Mar 2002
Posts: 1
|
How do I keep the leading zeroes in the zip codes of databases that I save in ascii text?
Formatting them as text or zip codes or general doesn't do it. |
|
|
|
|
|
#2 |
|
New Member
Join Date: Mar 2002
Posts: 22
|
How about a leading space? Almost any text character will do. The nice thing about a leading space is that it doesn't get in your way if you are printing the data or using it for mail merge.
You can also just turn it into text instead of a number using the text function. It still sorts properly. As text, Excel will want to left align instead of right align. |
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
|
Quote:
|
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Newcastle, UK
Posts: 1,174
|
try custom format 00000
__________________
"Have a good time......all the time" Ian Mac |
|
|
|
|
|
#5 |
|
New Member
Join Date: Mar 2002
Posts: 19
|
format the cell with a custom format.
i.e. 00000 |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|