#1   Report Post  
Queen
 
Posts: n/a
Default Zip Codes

I have a list of names and addresses in Excel. Some of the zip codes are in
just the regular 5 digit zip code format and some are in the zip + 4 format.
I would like to eliminate the additional 4 digits off the zip codes that have
them without having to manually delete those numbers from each cell. Is this
possible?
  #2   Report Post  
Erin Searfoss
 
Posts: n/a
Default

There are easier ways if the zip codes are in a separate
column (take a look at Data, Text to Columns, using "-" as
a delimiter), but in case your zip code is included with
the rest of the address this formula will work provided
the zip code is the last item in each cell.

=IF(MID(A4,LEN(A4)-4,1)="-",LEFT(A4,LEN(A4)-5),A4)
where A4 is the cell with the address. You can add a
blank column next to your address column. Enter this
formula down the column, then copy the results and paste
as values over the original addresses.

Erin

-----Original Message-----
I have a list of names and addresses in Excel. Some of

the zip codes are in
just the regular 5 digit zip code format and some are in

the zip + 4 format.
I would like to eliminate the additional 4 digits off the

zip codes that have
them without having to manually delete those numbers from

each cell. Is this
possible?
.

  #3   Report Post  
Mark
 
Posts: n/a
Default

Hi,
if you format the cells as Zipcode format, the other ones
can be formatteed as number only format or general.

Mark

-----Original Message-----
I have a list of names and addresses in Excel. Some of

the zip codes are in
just the regular 5 digit zip code format and some are in

the zip + 4 format.
I would like to eliminate the additional 4 digits off the

zip codes that have
them without having to manually delete those numbers from

each cell. Is this
possible?
.

  #4   Report Post  
Queen
 
Posts: n/a
Default

I appreciate the responses and I feel like the answer is there. The problem
is, I'm new to excel, self-taught and don't know how to use the answers (if
that makes sense). I'm trying to figure out how to use the information in
the post from Erin Searfoss, but I'm not familiar with using delimiters.
I've encountered that before so I've familiar with the term, just not how to
deal with it. Any additional advice?

"Queen" wrote:

I have a list of names and addresses in Excel. Some of the zip codes are in
just the regular 5 digit zip code format and some are in the zip + 4 format.
I would like to eliminate the additional 4 digits off the zip codes that have
them without having to manually delete those numbers from each cell. Is this
possible?

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
Excel doesn't sort zip codes properly [email protected] Excel Discussion (Misc queries) 4 February 4th 05 12:30 AM
Printing zip codes that start with 0 ET13 Excel Discussion (Misc queries) 2 January 17th 05 12:13 AM
Only Allowing Certain Codes In Column Buttercup Excel Discussion (Misc queries) 2 January 6th 05 09:32 PM
Set column to only allow certain codes??? Buttercup Excel Worksheet Functions 1 January 6th 05 08:29 PM
I am not able to format cells for zip codes JMelloman Excel Worksheet Functions 3 December 14th 04 02:24 AM


All times are GMT +1. The time now is 08:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"