+ Reply to Thread
Results 1 to 3 of 3

Lookup formula for postcodes?

  1. #1
    Registered User
    Join Date
    08-13-2004
    Posts
    66

    Lookup formula for postcodes?

    I have a list of records each with a postcode that takes either of the two formats:

    SA1 6HU
    N4 3HF

    I also have a list of postcodes that show only the first part of postcodes

    SA1
    SA2
    N3
    N4

    What formula would look up "SA1 6HU" and return SA1? while being also able to look up "N4 3HF" and return N4?
    Last edited by NBVC; 06-29-2009 at 09:28 AM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,452

    Re: Lookup formula for postcodes?

    Hi,

    =LEFT(A1,FIND(" ",A1)-1)
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    08-13-2004
    Posts
    66

    Re: Lookup formula for postcodes? [SOLVED]

    Quote Originally Posted by sweep View Post
    Hi,

    =LEFT(A1,FIND(" ",A1)-1)
    Thank you, works perfectly.

+ 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