+ Reply to Thread
Results 1 to 5 of 5

Excel 2007 : Vlookup returning a "0" instead of correct value

  1. #1
    Registered User
    Join Date
    09-30-2011
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    5

    Vlookup returning a "0" instead of correct value

    I am trying to vlookup an account number on one spreadsheet to my inventory of accounts on another. The formula I am using is =VLOOKUP($B23494,Inventory!$D:$K,6,FALSE) where Column b is the account number, D-K list the account number and vendor information, and column 6 is the Vendor Site Code. This formula has worked for the past 23522 lines but is not picking up the last one I entered. Instead of the correct side code it is giving me a "0." There is data in all of the required columns and I copied what I have as the account number in my spreadsheet into the correct line in the inventory sheet.

    Any help would be much appreciated!

  2. #2
    Registered User
    Join Date
    09-22-2011
    Location
    Washington, USA
    MS-Off Ver
    Excel 2003,2007, 2010
    Posts
    85

    Re: Vlookup returning a "0" instead of correct value

    Is the search range specified large enough? I.e. does it capture the entire range?

  3. #3
    Registered User
    Join Date
    09-30-2011
    Location
    St. Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Vlookup returning a "0" instead of correct value

    Yes- The item I need returned is in column "I" and my formula encompasses $D:$K. Like I mentioned before every other line is pulling the correct information. I even entered another inventory item today and that information pulled into my master file perfectly.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Vlookup returning a "0" instead of correct value

    Does it work if you move that info to a higher row? just as a test to see if it it the data or not?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Expert OnErrorGoto0's Avatar
    Join Date
    12-30-2011
    Location
    I DO NOT POST HERE ANYMORE
    MS-Off Ver
    I DO NOT POST HERE ANYMORE
    Posts
    1,655

    Re: Vlookup returning a "0" instead of correct value

    The only way I can see that you would get a 0 is if the relevant column for that row is blank (or actually contains 0). Are you sure that the information is there and that you do not, for example, have one incomplete row for that account number and a complete one? (a filter on the lookup table may help to check quickly)
    Good luck.

+ 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