+ Reply to Thread
Results 1 to 5 of 5

Summarizing Australian Postcodes

  1. #1
    Registered User
    Join Date
    09-14-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Summarizing Australian Postcodes

    Hi All,

    Back again with another post code issue

    what i need to do with the attached report is

    find out how many localities are a certain postcode then have them automatically concatenate into one cell with ", " Separating them so that the final 2 cells look as below


    810 I ALAWA, BRINKIN, CASUARINA, COCONUT GROVE, JINGILI, LEE POINT

    I need this to be update-able so if the post code lists change I Can drop a new list in and it will repopulate the data with the updated postcodes

    any help would be greatly appreciated
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Summarizing Australian Postcodes

    I would have a pivot table (or make sure the list is somewhere sorted into the postcode order and run off that) created off your postcodes and localities, the vba code run down the post code and that post code stays until a new one is detected, and a string of the localities is create. If a new one is detected the string is placed in the workbook, and then the next one.

  3. #3
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Summarizing Australian Postcodes

    Hello mikeconomy,

    Welcome to the Forum!

    I added a another worksheet to your workbook named "Summary". This also has a button added to run the macro below. This will list all the post codes with the all the associated localities in the cell to the right. The localities are separated by commas.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  4. #4
    Registered User
    Join Date
    09-14-2011
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Summarizing Australian Postcodes

    Leith ,

    I just want to say thank you , this code is amazing does exactly what I need your a brilliant and your code is elegant too.

    Once again thank you developing a resolution to my problem.


    Mike

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Summarizing Australian Postcodes

    Hello Mike,

    If you like the results, you can leave a tip in the jar . Glad I could help. Thanks for the kind words.

+ 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