+ Reply to Thread
Results 1 to 7 of 7

Postcode check and return of value in column title and cell adjacent to postcode

  1. #1
    Registered User
    Join Date
    03-22-2018
    Location
    Taunton, England
    MS-Off Ver
    10
    Posts
    35

    Postcode check and return of value in column title and cell adjacent to postcode

    Hi all

    I have a workbook which contains postcodes that lay within a radius of sites. Line A contains the column titles and each cell below contains the postcode and to the right of that cell the mileage from the site. I need to create either a macro or formula driven request in Sheet 2 where a postcode can be entered and if it exists within Sheet1 the output is the column name and the mileage. I really do not know where to start on this one!

    Apologies that it is a blank canvas to work from - this is only part of the workbook as one site has 92k postcodes associated to it!

    Many thanks

    BigTP
    Attached Files Attached Files

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Postcode check and return of value in column title and cell adjacent to postcode

    One option:

    In the VBA Editor (accessed by pressing Alt-F11), double-click on Sheet2 (or whatever sheet will be used to type in the codes) in the Project Window. Place this code there:

    Please Login or Register  to view this content.
    If the sheet with codes is not named "Sheet1" then adjust the code accordingly.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    03-22-2018
    Location
    Taunton, England
    MS-Off Ver
    10
    Posts
    35

    Re: Postcode check and return of value in column title and cell adjacent to postcode

    Hi Arkadi

    I have followed your instructions but the Macro does not appear in the list although it is influencing Sheet 1 as all selected!

    BigTP

  4. #4
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,690

    Re: Postcode check and return of value in column title and cell adjacent to postcode

    To Sheet2 code module

    Enter post code in Shet2!A1
    Please Login or Register  to view this content.
    Attached Files Attached Files

  5. #5
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Postcode check and return of value in column title and cell adjacent to postcode

    Big TP, my code would be in the Sheet2 module, then when you type a value in Sheet2 column A, it should output your results in columns B and C. I did test it before posting... but can put it in a workbook in case there was confusion. However, you can also download Jindon's book, he is a master.

  6. #6
    Registered User
    Join Date
    03-22-2018
    Location
    Taunton, England
    MS-Off Ver
    10
    Posts
    35

    Re: Postcode check and return of value in column title and cell adjacent to postcode

    Hi there

    Apologies for the delay. Works a treat.

    Many thanks

  7. #7
    Registered User
    Join Date
    03-22-2018
    Location
    Taunton, England
    MS-Off Ver
    10
    Posts
    35

    Re: Postcode check and return of value in column title and cell adjacent to postcode

    Hi Arkadi

    Yes you are correct. All works well on this now.

    BigTP

+ 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] Return a postcode prefix from a table (vlookup issue)
    By nickmax1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 07-26-2017, 10:08 PM
  2. Replies: 8
    Last Post: 03-29-2014, 10:05 AM
  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. enter suburb return with postcode
    By lpratt in forum Excel General
    Replies: 3
    Last Post: 04-12-2011, 02:50 AM
  7. Postcode check
    By aeh26 in forum Excel General
    Replies: 0
    Last Post: 01-23-2008, 09:47 AM

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