+ Reply to Thread
Results 1 to 7 of 7

Thread: Vlookup

  1. #1
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Vlookup

    I'm sure i'm doing something wrong, but i can't seem to figure out what it is...

    I have a list of 300 building addresses in my spreadsheet. On one spreadsheet, they are shown by their Building code, which is a shortened version of the building address (ex. If building address is 132 Canada Road the Building Code would be 132 Cana.

    In another spreadsheet i have the full building address. I need to convert the building code into the actual address.

    I've tried the formula below, but a n/a message keeps popping up.

    I've made sure to sort the building addresses, Any idea what i'm doing wrong?

    =VLOOKUP(LEFT(A2,6),Sheet3!$A$1:$B$45,2,FALSE)
    Attached Files Attached Files
    Last edited by Zan03; 02-22-2010 at 02:22 PM.

  2. #2
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,124

    Re: Vlookup

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  3. #3
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: Vlookup

    Thanks, please see attached as reference.

  4. #4
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,124

    Re: Vlookup

    tRY:

    =INDEX(Sheet2!$B$1:$B$10,MATCH(A2&"*",Sheet2!$A$1:$A$10,0))

    copied down.
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  5. #5
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: Vlookup

    Thanks, the formula seems to gather the information, but when i plugged it in to my actual spreadsheet with 300 addresses, the formula does not always bring up the correct building address. Any suggestions?

    Thanks for your time!

  6. #6
    Forum Moderator NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003, 2007, 2010
    Posts
    31,124

    Re: Vlookup

    As long as the left side of what you are looking up matches up exactly to the lookup code, then it should bring up correctly.

    Can you give example of what is not matching up?
    Microsoft MVP - Excel

    Where there is a will there are many ways. Pick One!


    Please read the Forum Rules

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

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

    Preferred Charities: Lupus Canada and Sick Kids Foundation.
    Feel Free to Donate if you want to, for the assistance you received today.

  7. #7
    Forum Contributor
    Join Date
    02-05-2010
    Location
    Toronto, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    113

    Re: Vlookup

    I'm sorry, i must have been doing something incorrectly...
    Everything is working perfectly!

    Thanks again,

    Zanna

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.2.0