Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
PalletHead
 
Posts: n/a
Default 4+ Zip Code Conversion

My Excel Document contains a Zip Code column which contains a nine digit zip
entry (4,000 of them!) ALL without hyphens.

I need to figure out a way to add hyphens to these entries (in the proper
place) or just delete the last four+ digits of the the zip code in order to
achieve a mail merge.

I'm totally a novice and unfamiliar with macros. Is there an easy way to do
this without having to change each cell manually?

I appreciate any help.

PH
  #2   Report Post  
Posted to microsoft.public.excel.misc
Abode
 
Posts: n/a
Default 4+ Zip Code Conversion

Are they all nine digit numbers?! If so you might be able to type this into
an empty column =LEFT(E13,5) & "-" & RIGHT(E13,4) and then use the fill
handle to drag the formula down to account for all 4,000 zipcodes. If you
want to place these new zipcodes over the originals highlight them all. Copy
the selection. The rightclick Paste Special. Select the Values Radio
button and OK. That should fix everything. If they are a mix of nine digit
and five digit then it wont work. Be sure to change the cell location E15 to
the right column and row. Hopefully that helps.

"PalletHead" wrote:

My Excel Document contains a Zip Code column which contains a nine digit zip
entry (4,000 of them!) ALL without hyphens.

I need to figure out a way to add hyphens to these entries (in the proper
place) or just delete the last four+ digits of the the zip code in order to
achieve a mail merge.

I'm totally a novice and unfamiliar with macros. Is there an easy way to do
this without having to change each cell manually?

I appreciate any help.

PH

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
regular code module billy boy Excel Discussion (Misc queries) 4 December 13th 05 07:30 PM
code not unique find latest date Barbara Wiseman Excel Discussion (Misc queries) 3 December 11th 05 08:50 AM
Conform a total to a list of results? xmaveric Excel Discussion (Misc queries) 1 August 21st 05 07:22 PM
Macro for changing text to Proper Case JPriest Excel Worksheet Functions 3 August 8th 05 09:31 PM
close form code tkaplan Excel Discussion (Misc queries) 1 June 3rd 05 10:49 PM


All times are GMT +1. The time now is 04:31 PM.

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"