+ Reply to Thread
Results 1 to 5 of 5

Split GB Postcode ranges in to rows!!!!

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    6

    Lightbulb Split GB Postcode ranges in to rows!!!!

    Does any one have any idea how to split GB postcode ranges into each rows.


    Current data as like this
    Postcode_from Postcode_until Townname Province
    AB1 0AA AB1 0ZZ ABERDEEN ABERDEENSHIRE
    AB1 1AA AB1 1ZZ ABERDEEN ABERDEENSHIRE
    AB1 2AA AB1 2ZZ ABERDEEN ABERDEENSHIRE
    AB1 3AA AB1 3ZZ ABERDEEN ABERDEENSHIRE

    I need to make it like this
    Postcode_from Townname Province
    AB1 0AA ABERDEEN ABERDEENSHIRE
    AB1 0AB ABERDEEN ABERDEENSHIRE
    AB1 0AC ABERDEEN ABERDEENSHIRE
    AB1 0AD ABERDEEN ABERDEENSHIRE

    Other big issue is current GB data have more 50000 records if we split this into Rows i may need acces table.. how can i exported complet splited list into access table?
    Does anyone know experience on this ? ..

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Split GB Postcode ranges in to rows!!!!

    it would probably be easier to download from here they are split like that
    http://www.doogal.co.uk/PostcodeDownloads.php
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    Registered User
    Join Date
    07-10-2013
    Location
    amsterdam
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Split GB Postcode ranges in to rows!!!!

    Thank you for the link.
    i actually had to split data bcs each postcode range have defined to special area code if i could make the split postcode then i can also define this area code next to it . I hope i canable to do it

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Split GB Postcode ranges in to rows!!!!

    AB1 0AA ABERDEEN ABERDEENSHIRE
    AB1 0AB ABERDEEN ABERDEENSHIRE
    AB1 0AC ABERDEEN ABERDEENSHIRE
    AB1 0AD how do you know that AB1 0AC for example exists it may not be used

  5. #5
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Split GB Postcode ranges in to rows!!!!

    What's the purpose to generate a line for every postcode? The reason I ask is if you want to create a postcode lookup table, there may be a clever way to use the original data to match postcodes in between the from and until post codes.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

+ 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