+ Reply to Thread
Results 1 to 3 of 3

Address/Postcode seperate

  1. #1
    Registered User
    Join Date
    01-26-2012
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    10

    Address/Postcode seperate

    Hello,

    I have a problem where address data on a sql database is quite messy. When copying to excel, it looks as per the sample attachment. Is there a formula to clean this up or to just even seperate the postcode only from the address column?

    As you can see, some of the addresses are seperated by comma, normal spacing, double spacing etc. I have about 5000 rows to clean this up.

    Any help would be much appreciated.

    Thank you
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Address/Postcode seperate

    What you don't mention is if the postcodes are formatted correctly - Outbound code, Space, Inbound code. They are in your sample so am assuming the sample is correct...

    =TRIM(RIGHT(SUBSTITUTE(TRIM(A2)," ",REPT(" ",99)),2*99)) in B2 and copied down.


    EDIT: No, they're not. M212? Ignore this
    Last edited by cytop; 04-19-2017 at 04:34 AM.

  3. #3
    Registered User
    Join Date
    01-26-2012
    Location
    uk
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: Address/Postcode seperate

    M212 is a wrong UK postcode format which means it wouldn't work for that one. Those one will probably have to be done manually after the formula so your formula works great.

+ 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. [SOLVED] Formula to Seperate streetname from street+Postcode string
    By FredFitzgerald in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-19-2016, 08:21 AM
  2. [SOLVED] Extracting postcode from a cell which contains address
    By Rob8489 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 08-08-2016, 09:51 AM
  3. Replies: 2
    Last Post: 10-12-2015, 02:18 PM
  4. Remove PostCode from Address field
    By aedislee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2014, 09:53 AM
  5. [SOLVED] Split cells postcode from address
    By dsthome in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-10-2013, 02:15 AM
  6. [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
  7. 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