Convert a 5 digit zip code to a 3 digit zip code

C

Carl

I have a database already containing names and addresses.
I would like to convert the 5 digit zip code into a 3
digit zip code so it can be used for territory
assignment. The problem I seem to have is that I always
lose the leading zero. For example, 07109 becomes 710.
Any help would be appreciated. I have tried using a Zip
code and custom format and then using the "text to
columns" to separate the zip with no luck.

Thanks,
Carl
 
H

Harlan Grove

Carl said:
lose the leading zero. For example, 07109 becomes 710.
....

If your zip codes are numbers, you need to use

=LEFT(TEXT(ZipCode,"00000"),3)
 
C

Carl

-----Original Message-----

....

If your zip codes are numbers, you need to use

=LEFT(TEXT(ZipCode,"00000"),3)


.
Thanks for the help! I had found another solution but
this handles the whole list in one action.
 
R

Ron Rosenfeld

I have a database already containing names and addresses.
I would like to convert the 5 digit zip code into a 3
digit zip code so it can be used for territory
assignment. The problem I seem to have is that I always
lose the leading zero. For example, 07109 becomes 710.
Any help would be appreciated. I have tried using a Zip
code and custom format and then using the "text to
columns" to separate the zip with no luck.

Thanks,
Carl


=MOD(zipcode, 1000)


--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top