+ Reply to Thread
Results 1 to 4 of 4

Macro to fix zipcodes

  1. #1
    Forum Contributor
    Join Date
    09-29-2008
    Location
    usa
    MS-Off Ver
    EXCEL 2010
    Posts
    116

    Macro to fix zipcodes

    I have a spreadsheet and I have to fix zip codes everyday for the map to read them
    Example if zip code is 66606-5648 map will read the zip code,
    but if its 66606 it will not read it
    I need to macro that It will fix the zip code form 66606 to 66606-5648 the zip code doesn’t have to have the correct last four digits just any last four digit I attach a sample of the file
    Any help will be greatly apreciate
    Attached Files Attached Files
    Last edited by martinez_pedro; 03-31-2009 at 01:43 PM.

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Macro to fix zipcodes

    Posting files which initiate downloads will likely reduce the number of people willing to help.
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Macro to fix zipcodes

    Maybe in I48 and copy down, =TEXT(LEFT(SUBSTITUTE(I2, "-", "") & "000000000", 9), "00000-0000")
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Contributor
    Join Date
    09-29-2008
    Location
    usa
    MS-Off Ver
    EXCEL 2010
    Posts
    116

    Re: Macro to fix zipcodes

    thankyou very much shg that formula works thx

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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