Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4
Default Match a UK postcode from a table of postcodes

Hi - using Excel 2010 but could use Office 365 if that helps!


A customer has a postcode and we need to identify the Zone in order to calculate cost of delivery. It could be any of the following formats;

BA12 1AA
BA1 2SD
B4 2GH
SW1W 8BB


I have a sheet with columns which represent Zones and each Zone has different UK postcode regions and sectors so for example Zone C includes

B
IP
LD
ME
NE
NR
PE21
PE22
PE23
PE24
PE25
PE30

You can see that the first 1 or 2 letters of the postcode are important but where a postcode region is larger the numbers become important to ensure the correct Zone is chosen. Sometimes the number after the space is also used.

I have 5 formulae for each Zone to check if the postcode - or part of it - is a match within a Zone and these are replicated for each Zone so I end up with lots of 0's and only one answer with 1. I am checking for the following matches;

KA6 5NE
KA6 5
KA6
KA
K

When I find the correct answer it will be in a column and I need that column heading to obtain the Zone letter. If anyone can compile that into a single cell formula then I would be full of thanks.

Thanks for reading

Corporal Smudge
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
need to return next match of table, only finding first match...HEL nwtf_vol[_2_] Excel Worksheet Functions 0 January 23rd 08 01:42 AM
Format of Postcodes pseudonym Excel Discussion (Misc queries) 8 May 18th 07 02:48 PM
Format of postcodes pseudonym Excel Discussion (Misc queries) 3 May 18th 07 11:40 AM
Sorting UK Postcodes Aristobulus Excel Worksheet Functions 4 September 16th 06 04:51 PM
Postcodes PH NEWS Excel Worksheet Functions 6 May 5th 06 10:11 AM


All times are GMT +1. The time now is 03:26 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"