+ Reply to Thread
Results 1 to 4 of 4

Remove PostCode from Address field

  1. #1
    Registered User
    Join Date
    10-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    27

    Remove PostCode from Address field

    Hi all

    I have a list of addresses, which are comma seperated, all ending with a PostCode

    How Can i strip out the PostCode field please?

    Thanks

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Remove PostCode from Address field

    Can you post some sample data so we'll know what you're working with?
    (Make sure you replace any confidential data with dummy data)
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    10-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: Remove PostCode from Address field

    no problem

    Examples as follows

    123 high street, ZZ14, WPG
    123 hight street, test town, nowhere, z1 4ut

  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 PostCode from Address field

    Try this one

    =SUBSTITUTE(TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",255)),255*2)),",","")

    A
    B
    1
    123 high street, ZZ14, WPG ZZ14 WPG
    2
    123 hight street, test town, nowhere, z1 4ut z1 4ut
    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

+ 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. Replies: 4
    Last Post: 05-29-2014, 12:05 AM
  2. [SOLVED] Split cells postcode from address
    By dsthome in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-10-2013, 02:15 AM
  3. [SOLVED] Help needed trimming full postcode address to postcode sector.
    By Mikey7346 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-10-2012, 05:11 PM
  4. Replies: 2
    Last Post: 12-05-2011, 01:27 PM
  5. display address corresponding to postcode and house no
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-12-2010, 09:37 AM

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