+ Reply to Thread
Results 1 to 10 of 10

Filter post codes

  1. #1
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Filter post codes

    Hi, I have a list of post codes two letter starts by region. e.g.

    inner london:

    EC
    WC
    SW
    W
    NW
    E
    SE


    In addition I have several very long lists of postcodes which I can obviously pull out the first two letters from using the Left function.

    However I am wondering what is the best way to filter the column of postcodes into the postcode defined regions such as inner london nicely.

    Any help is greatly appreciated,

    Thanks

  2. #2
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: Filter post codes

    Can you upload the data ( dummy in case if it is sensational) as an excel file for better understanding?

  3. #3
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2013
    Posts
    4,337

    Re: Filter post codes

    Moderator's Note:
    To attach a sample workbook as requested by elayaz.

    Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,213

    Re: Filter post codes

    Willl just the letters be specific enough? Whilst it may be for London, when you get further afield and out into the sticks, letter only postcodes can be HUGE. Would you not be better with everything before the space? - You could use text to columns for that

  5. #5
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Filter post codes

    Sure please see attached. I have manually copied two postcodes into cells d2:e2 in the after sheet, but would like to do this using a formula for all the postcodes in the sample sheet. Of which I will have thousands

    Thanks
    Attached Files Attached Files

  6. #6
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,213

    Re: Filter post codes

    Maybe like this?
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Filter post codes

    Very nice move using the 1 instead of a zero at the end of the match function, can I ask why you chose to do that? thanks

  8. #8
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,213

    Re: Filter post codes

    Because it does a partial match then, the only criteria is that the lookup list must be sorted alphabetically - it means there's no need to try and extract the first letters

  9. #9
    Forum Contributor
    Join Date
    11-13-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    279

    Re: Filter post codes

    genius, thank-you extremely!

  10. #10
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,213

    Re: Filter post codes

    No problem, thanks for the feedback

+ 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