+ Reply to Thread
Results 1 to 11 of 11

Vlookup Error on Excel 2007

  1. #1
    Registered User
    Join Date
    01-31-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Vlookup Error on Excel 2007

    any help?
    Example
    Sheet1
    A B C D E F G H I J
    1 save adr100
    2 all adr20
    Sheet2
    A B
    adr100 =vlookup(a1,Sheet1!A1:J3;2;False)

    The result of =vlookup = #NA that supposedly to be 'save' any help?
    Last edited by VBA Noob; 01-31-2009 at 10:11 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526

    Re: Vlookup Error on Excel 2007

    The data to search for must be the same as the data in the table

    XL2007 has an Iferror Function
    I don't use XL'07 but I have seen it.
    Check out the help file for IfError
    Here's a site as well
    http://exceltip.com/st/IFERROR_Funct...007_/1372.html
    Last edited by davesexcel; 01-31-2009 at 09:46 AM.

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Vlookup Error on Excel 2007

    It's impossible to tell your real data layout from what you have posted.

    Can you attach a workbook example.
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,702

    Re: Vlookup Error on Excel 2007

    If you use the formula

    =vlookup(a1,Sheet1!A1:J3;2;False)

    then that searches for A1 in sheet1 A1:A3 and, if found, returns from the corresponding row in sheet1 B1:B3. From your example it looks like you want to return a value from a column to the left of the lookup range, you can't do that with VLOOKUP, try using an INDEX/MATCH construction, e.g. to look up the value in B1:B3 and return a value from A1:A3 use

    =INDEX(sheet1!A1:A3,MATCH(A1,sheet1!B1:B3,0))

    see here for some explanation of INDEX/MATCH

  5. #5
    Registered User
    Join Date
    01-31-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Vlookup Error on Excel 2007

    I upload my workbook sample. I save it using Excel 2003 Format because i think out there still a lot of people using 2003 Format. Thanks

    it's my first time to upload file here. I don't know it's work or not.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526

    Re: Vlookup Error on Excel 2007

    Quote Originally Posted by gasukadingin View Post
    I upload my workbook sample. I save it using Excel 2003 Format because i think out there still a lot of people using 2003 Format. Thanks

    it's my first time to upload file here. I don't know it's work or not.
    I don't see it....

  7. #7
    Registered User
    Join Date
    01-31-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Vlookup Error on Excel 2007

    Ok i think it's failed to upload. I don't know why. Maybe it's due to my super slow internet connectivity. I will try again soon.

  8. #8
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526

    Re: Vlookup Error on Excel 2007

    Quote Originally Posted by gasukadingin View Post
    Ok i think it's failed to upload. I don't know why. Maybe it's due to my super slow internet connectivity. I will try again soon.
    The workbook may be too large, just make it small enough for a sample.

  9. #9
    Registered User
    Join Date
    01-31-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Vlookup Error on Excel 2007

    Nope my workbook only 17 kb, it's just my internet problem
    It's success to upload now
    Ok need help for this strange formula that it work on 2003 but not at 2007
    Attached Files Attached Files

  10. #10
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,481

    Re: Vlookup Error on Excel 2007

    That formula does not work in either version.
    daddylonglegs explained how the VLOOKUP formula works and your data is not laid out in a way that will allow you to use VLOOKUP.

    =IF(ISERROR(MATCH(A3,Sheet1!J3:J5,FALSE)),"",INDEX(Sheet1!B3:B5,MATCH(Sheet2!A3,Sheet1!J3:J5,FALSE),1))

  11. #11
    Registered User
    Join Date
    01-31-2009
    Location
    Indonesia
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Vlookup Error on Excel 2007

    Ok thanks for your help, i will try that tips.

+ 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