+ Reply to Thread
Results 1 to 5 of 5

Remove the +4 number from a zip code

  1. #1
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Remove the +4 number from a zip code

    How can I remove the +4 from a zip. I have complete addresses in individual cells. If there exists a zip code with the +4 number, I want to remove the +4 and leave only the 5-digit code. Thanks

    Current Cells
    JOE SMITH 10-09-07 123 OAK DRIVE HOLLYWOOD CA 73099
    JOE SMITH 10-09-07 123 OAK DRIVE HOLLYWOOD CA 73099-1234
    ANY NAME MANHASSET NY 11030-6678
    ANY NAME MANHASSET NY 11030

    Expected Output
    JOE SMITH 10-09-07 123 OAK DRIVE HOLLYWOOD CA 73099
    JOE SMITH 10-09-07 123 OAK DRIVE HOLLYWOOD CA 73099
    ANY NAME MANHASSET NY 11030
    ANY NAME MANHASSET NY 11030

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Remove the +4 number from a zip code

    If your formula is in A1

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Remove the +4 number from a zip code

    Hi,

    One way would be a UDF. e.g.
    Please Login or Register  to view this content.

    and in the Workksheet

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Remove the +4 number from a zip code

    Or this
    Enter in B1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Excel 2016 (Windows) 32 bit
    A
    B
    1
    JOE SMITH 10-09-07 123 OAK DRIVE HOLLYWOOD CA 73099 JOE SMITH 10-09-07 123 OAK DRIVE HOLLYWOOD CA 73099
    2
    JOE SMITH 10-09-07 123 OAK DRIVE HOLLYWOOD CA 73099-1234 JOE SMITH 10-09-07 123 OAK DRIVE HOLLYWOOD CA 73099
    3
    ANY NAME MANHASSET NY 11030-6678 ANY NAME MANHASSET NY 11030
    4
    ANY NAME MANHASSET NY 11030 ANY NAME MANHASSET NY 11030
    Sheet: Sheet1
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Valued Forum Contributor
    Join Date
    11-20-2003
    MS-Off Ver
    2010, 2016
    Posts
    1,173

    Re: Remove the +4 number from a zip code

    These all work. Thanks

+ 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. Remove VBA Code
    By kayzip in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-11-2016, 11:22 PM
  2. Code to remove compare and remove duplicate value between 2 columns
    By winmaxservices1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-22-2015, 02:30 PM
  3. Replies: 3
    Last Post: 08-12-2014, 06:26 PM
  4. VBA to remove formulas from specific number columns (number changes each week)
    By DKerr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2013, 06:41 AM
  5. Need to remove number and decimal from before number
    By NHeritage61 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2013, 04:53 PM
  6. Need VBA code to remove entries if there are duplicates (remove them totally)
    By BrandonFromSingapore in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-13-2012, 12:50 AM
  7. remove cr character from a + number and change number to - 159cr
    By Cr character on numbers in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-10-2006, 06:40 PM

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