+ Reply to Thread
Results 1 to 14 of 14

Look up postcode and allocate region

  1. #1
    Registered User
    Join Date
    07-09-2020
    Location
    Newcastle, England
    MS-Off Ver
    Office 365
    Posts
    17

    Look up postcode and allocate region

    Hi all,

    I have 2 sales managers who are responsible for different regions in the country. I've created a spreadsheet with every UK postcode and against each postcode have allocated a sales manager. What I'm trying to do is type in a postcode on a different sheet and for Excel to recognise which sales manager that postcode relates to. Is this possible and if so, how do I do it?? Thanks in advance!
    Last edited by ew80; 07-09-2020 at 11:18 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,953

    Re: Look up postcode and allocate region

    Welcome to the forum.

    You will need a VLOOKUP or INDEX MATCH - both very easy.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    07-09-2020
    Location
    Newcastle, England
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Look up postcode and allocate region

    Thanks AliGW!

    I've attached an example of the spreadsheet. So on sheet1 I want to be able to manually type in a postcode in C3 and for C4 to automatically be populated using the info in sheet 2.

    I hope that makes sense??
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,953

    Re: Look up postcode and allocate region

    Here you go:

    =INDEX('UK Postcode'!$E$2:$E$15,MATCH(C3,'UK Postcode'!$A$2:$A$15,0))

  5. #5
    Registered User
    Join Date
    07-09-2020
    Location
    Newcastle, England
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Look up postcode and allocate region

    That's absolutely amazing! Thank you so much!!

    I've just found out (probably unsurprisingly) that I can't fit all the postcodes on one sheet. Is it possible to achieve the same but over different sheets? I've attached an updated example

    I really appreciate your help
    Attached Files Attached Files

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,953

    Re: Look up postcode and allocate region

    What do you mean? Why do you think you can't fit them all on one sheet? Of course you can, and it will be far simpler if you do. Don't make your job unnecessarily complicated: put them all on one sheet and use filters if you need to view different regions. Nearly 1.5 million rows should be plenty!!!

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,953

    Re: Look up postcode and allocate region

    Do you really need postcodes for the whole of the UK???

  8. #8
    Registered User
    Join Date
    07-09-2020
    Location
    Newcastle, England
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Look up postcode and allocate region

    I've reached cell 1048576 and can't go any further, Google tells me there's 1.7 million postcodes in the UK ... typical! I think this may be becoming too difficult a task for what I'm hoping to automate!

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Look up postcode and allocate region

    Do you really need all postcodes?
    https://www.postcodeaddressfile.co.u..._explained.htm
    In the country postcodes are made up of

    of 124 Areas L, S, DN etc

    2,827 Districts L4, S6, DN7 etc

    and 9,487 Sectors L4 3, S6 2, DN7 8 etc

    Are you really allocating more finely than this? I would be surprised more finely than District or even Area

    Otherwise your allocation will take forever! 1.756 million Postcodes. and 29 million addresses

    It is possible to match a postcode to the area or sector or district it is part of
    Last edited by davsth; 07-09-2020 at 08:44 AM.

  10. #10
    Registered User
    Join Date
    07-09-2020
    Location
    Newcastle, England
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Look up postcode and allocate region

    Thanks davsth, actually doing it by sector makes it far easier than by full postcode. I've been given very vague instructions around this and have made it more difficult than it needs to be! You've made my life infinitely more easy! Thank you!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,953

    Re: Look up postcode and allocate region

    That's the way forward, and i was going to suggest something similar. Let us know if you need any more help.

  12. #12
    Registered User
    Join Date
    07-09-2020
    Location
    Newcastle, England
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Look up postcode and allocate region

    You have been amazing!! There's one last thing you might be able to help me with if you don't mind? I'm trying to do a secondary calculation using IF AND but as a novice I'm struggling!!

    Based on criteria I want to label different customers either KAM, AM or Associate. The criteria is if the region is Scott and the customer has less than 15 stock they are associate, between 15 - 30 they are AM and more than 30 they are KAM. To make things more complicated, the criteria is different again for Rob. Using IF and AND I've got as far as it working for associate for Scott but then when I try to use multiple statements it just returns FALSE ... I know I'm doing it wrong I'm just not sure what I need to do to make it work!

    Thank you so so much for all of your help with this!
    Attached Files Attached Files

  13. #13
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Look up postcode and allocate region

    without knowing the values for Rob it is hard for a full solution

    Have a play with cell d14 is matches the last value in j:L where the person is the person of interest and the stock fits to your levels I made some up for rob
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    07-09-2020
    Location
    Newcastle, England
    MS-Off Ver
    Office 365
    Posts
    17

    Re: Look up postcode and allocate region

    davsth you're an absolute angel! This is perfect, thank you so so much!!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Postcode check and return of value in column title and cell adjacent to postcode
    By BigTP in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-26-2018, 05:04 AM
  2. Replies: 2
    Last Post: 06-01-2015, 06:23 PM
  3. Postcode to postcode distance checker
    By KerryLL1221 in forum Excel General
    Replies: 1
    Last Post: 02-21-2014, 09:42 AM
  4. Lookup postcode zone from postcode
    By Elmholt in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2013, 09:26 AM
  5. [SOLVED] Help needed trimming full postcode address to postcode sector.
    By Mikey7346 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-10-2012, 05:11 PM
  6. Replies: 4
    Last Post: 05-17-2012, 06:30 PM
  7. Replies: 1
    Last Post: 10-04-2007, 12:04 PM

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