+ Reply to Thread
Results 1 to 4 of 4

Deleting +4 of a Zip Code in a Column

  1. #1
    Registered User
    Join Date
    09-25-2008
    Location
    PG County
    Posts
    2

    Deleting +4 of a Zip Code in a Column

    I have a column that contains thousands of Zip Codes. Some of them are just the five digit zip code, example, 20740. This is great and what I need the entire column to be. What is no good, is that many zip codes contain the +4 number, example, 20740-4321.

    Example of the Column:

    20740
    20781
    20781-2345
    20033
    20103-4224

    Is there a way to get rid of all '-####' in the column, to allow the entire column to contain ##### for zip code?

  2. #2
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326
    Hi and welcome to the board
    Select your range - data - text to columns - check fixed width- set the break line so that is before the dash
    OK
    delete the 2nd column

  3. #3
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Hi,

    Welcome to the forum, try this in B1 and copy down

    =LEFT(A1,5)
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Just thought of another, select the range, go to Edit > Find, type in -* click Replace tab, then the OK button

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Inserting a Column - Sometimes Works, Sometimes Not
    By teddybouch in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-11-2008, 06:52 PM
  2. Inserting country code "1" into an existing column of phone numbers
    By Snowyky in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 03-18-2008, 06:06 PM
  3. enhancing Column A through Column B
    By julia81 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-14-2008, 11:23 PM
  4. deleting similar numbers from column of thousands
    By tsni.gln in forum Excel General
    Replies: 3
    Last Post: 08-17-2007, 01:50 PM
  5. Need help to modify code to include more than 1 Column
    By coreytroy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-15-2007, 02:08 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1