Grouping postcodes by UK regions

Natalia132

Board Regular
Joined
Mar 20, 2007
Messages
81
I have to group our customers' postcode details by regions (i.e. Greater London, East Anglia etc...)

It's a huge list- and I was just wondering... what is the easiest way to do that...


It's a huge list of customers' orders which will expand as orders arrive every day. I would like them automatically to be appearing on a separate sheet- showing the region information...

any ideas... please, advise


many thanks,
Natalia
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
The only way I can think of, is to download the existing postcode lists from the Post Office website, they have all the UK postcodes available to download, including a list of postcode regions, have a look maybe something there will help you !

You will need to register with them, but the service is free and easy to use, have a look it may help you with your problem.

http://www.mailsorttechnical.com/downloads_mailsort.cfm
 
Upvote 0
Hi Natalia

You need some form of lookup table so that you can apply a region to the first part of the postcode. The following shows one way to do this:
Book1
ABCDEF
1Postcode areaPostcode area name
2ABAberdeen
3ALSt Albans
4BBirminghamFull PostcodeExtracted Post Code AreaRegion
5BABathBA4 8GYBABath
6BBBlackburnBN8 4EWBNBrighton
7BDBradford
8BHBournemouth
9BLBolton
10BNBrighton
11BRBromley
12BSBristol
13BTBelfast
14CACarlisle
15CBCambridge
16CFCardiff
Sheet1


Formula in E5 is:

Code:
=LEFT(D5,MIN(FIND({0,1,2,3,4,5,6,7,8,9},D5&"0123456789"))-1)

formula in F5 is:

Code:
=VLOOKUP(E5,$A$2:$B$16,2,0)

You will need to extend the Vlookup range for as many regions as you have in your table (I downloaded this from Wikipedia, so the fragment I have may not be wholly accurate).
 
Upvote 0
thanks, guys...

i think I will use royal mail website... and try to do some sort of tables...

but because of the quantity of postcodes... It'll take a lot of time...
 
Upvote 0

Forum statistics

Threads
1,215,248
Messages
6,123,877
Members
449,130
Latest member
lolasmith

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top