+ Reply to Thread
Results 1 to 7 of 7

Suburb and Postcode List

  1. #1
    Registered User
    Join Date
    11-06-2007
    Posts
    28

    Suburb and Postcode List

    Hi Guys,

    I'm really ordinary at excel so be nice!!

    I have a spreadsheet that has a list of all suburbs in my state in column 1 with the corresponding postcodes in column 2. In column 3 I have organised the suburb names into regions that i got from a different list. Needless to say the suburbs/postcodes are not aligned. What I want is a formula for moving/copying the postcodes to a 4th column next to my new organisation of suburbs. I've tried IF functions but being quite hopeless I've had no luck. Basically I need to formula to say something like Column 4 = Column 2 when Column 3 = Column 1. Since they dont line up I need to search Column 1 until it does equal column 3. I want no blanks. Is this even possible?? Thanks in advance.

    Crania

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Assuming your data is in columns A, B and C use a VLOOKUP formula in column D, e.g. in D1

    =VLOOKUP(C1,A:B,2,0)

    copied down the column

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Probably a Vlookup() type formula will work..

    =Vlookup(C2,A:B,2,0) copied down.

    where C2 is the first suburb in column 3 and columns A and B contain your lookup list.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  4. #4
    Registered User
    Join Date
    11-06-2007
    Posts
    28

    Thanks a Million

    I love forums, so many experts. Thanks so very very much guys. Can I ask another quick, probably really simple, question. If I now delete columns 1 and 2 will I lose all the data in column 4? Is there a way to stop this? Thanks again

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by crania
    I love forums, so many experts. Thanks so very very much guys. Can I ask another quick, probably really simple, question. If I now delete columns 1 and 2 will I lose all the data in column 4? Is there a way to stop this? Thanks again
    You can copy column 4 and then click D1 (first cell in column 4) and go to Edit| Paste Special and select Values...click OK.

    Then you can delete columns A and B

  6. #6
    Registered User
    Join Date
    11-06-2007
    Posts
    28

    Thanks

    Thanks mate. You have saved me a lot of manual labour. I hope you have a great day!!

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Quote Originally Posted by crania
    Thanks mate. You have saved me a lot of manual labour. I hope you have a great day!!

    You too!

+ 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