ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Leading 0s in zip codes suppressed - should be text or zip format (https://www.excelbanter.com/excel-discussion-misc-queries/157152-leading-0s-zip-codes-suppressed-should-text-zip-format.html)

Foolish Aunt

Leading 0s in zip codes suppressed - should be text or zip format
 
I have a data file that was given to me in .xls format - and all of the
leading 0s have been suppressed. How do I get them back?

Thanks.

Peo Sjoblom

Leading 0s in zip codes suppressed - should be text or zip format
 
Use a help column

=TEXT(A1,"00000")

(assuming your zip codes start in A1)

copy down, then copy and paste special over the source will give you text
with leading zeros

You can also use formatcellsnumberspecial and select zip codes
that will change to the correct format but it won't export the leading zeros
if that's what you want


--
Regards,

Peo Sjoblom





"Foolish Aunt" wrote in message
...
I have a data file that was given to me in .xls format - and all of the
leading 0s have been suppressed. How do I get them back?

Thanks.




Foolish Aunt

Leading 0s in zip codes suppressed - should be text or zip for
 
Success! THANK YOU!



All times are GMT +1. The time now is 12:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com