+ Reply to Thread
Results 1 to 8 of 8

Extracting postcode from a cell which contains address

  1. #1
    Registered User
    Join Date
    01-02-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    63

    Extracting postcode from a cell which contains address

    Im trying to come up with a formula that extracts the 4 digit postcode from a cell containing an address. The postcode is not always in the same position in the cell, and it wont always be the only 4 digit number as there may be addresses such as 1419 Smith St etc.

    Can anyone assist?

    Below is a sample from the column (btw, i couldn't attach the excel file for some reason)

    915 Nudgee Rd Banyo, Qld 4014 Australia
    18/2 armadale street Armadale, VIC 3143 Australia
    1 Kohl Street Upper Coomera, QLD 4209 Australia
    Level 6, 60 York Street Sydney CBD, New South Wales 2000 Australia
    41 Bridge Rd Glebe, NSW 2043 Australia
    80 Box Road Taren Point, NSW 2229 Australia
    Unit 5 16 Theodore St Eagle Farm, QLD 4009 Australia
    1 Wella Way Somersby, NSW 2250 Australia
    Level 1, 9 Plaza Pde MAROOCHYDORE, QLD 4558 Australia
    The Unicorn Club- MHSOBA, Forrest Hill South Yarra, Victoria 3141 Australia
    Suite 32, 21 Aristoc Road Glen Waverley, Victoria 3149 Australia
    Cairns Professional Centre 92 - 96 Pease Street Manunda, QLD 4870 Australia
    Level 31 King Street Melbourne, VIC 3000 Australia
    6 Station Street Moorabbin Melbourne, Victoria 3189 Australia
    Richmond Melbourne, 3121 Australia
    91 Moreland Street Footscray, VIC 3011 Australia
    PO Box 274 Melbourne, Victoria 3205 Australia

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,938

    Re: Extracting postcode from a cell which contains address

    Can you put some expected result ??
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Extracting postcode from a cell which contains address

    based on your example, you can use this one.

    =LEFT(RIGHT(A1,14),4) and drag down.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Extracting postcode from a cell which contains address

    Looks like it is always the 14th last to the 11th last digits assuming they all finish with the postcode then the word Australia. Can you confirm this is the pattern always? If so using mid and Len functions should be able to get you the 14th last to the 11th last digits pretty easily.
    Happy with my advice? Click on the * reputation button below

  5. #5
    Registered User
    Join Date
    01-02-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Extracting postcode from a cell which contains address

    ive now managed to attach a table containing the desired result in column B
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,916

    Re: Extracting postcode from a cell which contains address

    Adding an IFERROR(VALUE...),"") to oeldere's formula catches all of the places where you want the output to be blank.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Extracting postcode from a cell which contains address

    see the attached file, with the amended formula on #3.

  8. #8
    Registered User
    Join Date
    01-02-2012
    Location
    Melbourne
    MS-Off Ver
    Excel 2003
    Posts
    63

    Re: Extracting postcode from a cell which contains address

    thank you guys, very helpful!

+ 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: 2
    Last Post: 10-12-2015, 02:18 PM
  2. Remove PostCode from Address field
    By aedislee in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-20-2014, 09:53 AM
  3. Replies: 4
    Last Post: 05-29-2014, 12:05 AM
  4. [SOLVED] Split cells postcode from address
    By dsthome in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-10-2013, 02:15 AM
  5. [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
  6. Replies: 2
    Last Post: 12-05-2011, 01:27 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

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