+ Reply to Thread
Results 1 to 12 of 12

Vlookup Formula is showing error

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

    Vlookup Formula is showing error

    I'm new to using excel and I have project that I need to finish but I can't seem to get the formula working.
    Basically, I'm using Vlookup to track inventory. All of my inventory items are on seperate workbooks and my formula is on the last workbook. I'm tracking by codes (in column A I have all product codes and in column B i have the quantity). All products are listed singularly (eg- I have 10 of something there are ten rows with the same item number) and there is a total at the end of each item code.
    My problem is that the vlookup is only catching the first number and either i get an #N/A error or quantity of 1, where there should be 2,5 or 10.
    Please help!!

    Thanks
    Last edited by VBA Noob; 01-12-2009 at 03:50 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Are you trying to sum the totals where matches occur?

    Can you also show us the actual formula you are using?

    Are there times where there are no matches to be found?
    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.

  3. #3
    Registered User
    Join Date
    01-12-2009
    Location
    Seattle
    MS-Off Ver
    Excel 2007
    Posts
    6

    Vlookup Formula is showing error

    This is the formula i'm using:
    VLOOKUP(B4,FORMULA!$A$2:$B$1710,2,FALSE)

    I want to show the totals from my 'formula' tab onto each corresponding item number:
    inventory page
    D37OU-ING-E TOP XT USA PRO 600 #N/A
    Formula page
    D370U-ING-E 1
    D370U-ING-E 1
    D370U-ING-E 1
    D370U-ING-E 1
    D370U-ING-E 1
    D370U-ING-E 1
    D370U-ING-E Total 6

    All of the items on my workbooks should all have a match.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Do you mean perhaps?

    =SUMIF(FORMULA!$A$2:$A$1710,B4,FORMULA!$B$2:$B$1710)

  5. #5
    Registered User
    Join Date
    01-12-2009
    Location
    Seattle
    MS-Off Ver
    Excel 2007
    Posts
    6
    No that just comes back with False.

  6. #6
    Registered User
    Join Date
    01-12-2009
    Location
    Seattle
    MS-Off Ver
    Excel 2007
    Posts
    6
    I can attach sheet if that would make it easier to see what I'm trying to do?

  7. #7
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    As a general rule

    Yes, generally, attaching a sheet is pretty much ALWAYS beneficial in seeing what you're trying to do.

    mew!
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  8. #8
    Registered User
    Join Date
    01-12-2009
    Location
    Seattle
    MS-Off Ver
    Excel 2007
    Posts
    6
    Here is the attachment
    Last edited by kh0515; 01-12-2009 at 04:19 PM.

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I put this formula in B4 and copied down and got results...

    =SUMIF(FORMULA!$A$2:$A$1710,B4,FORMULA!$B$2:$B$1710)

    No Falses...

  10. #10
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    vlookup formula

    look at the attached file.
    hope it helps.
    modytrane
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    01-12-2009
    Location
    Seattle
    MS-Off Ver
    Excel 2007
    Posts
    6
    Oh my goodness!! It works! You are my heroes!! Thank you SO much

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    You should be able to use COUNTIF() instead..without the CTRL+SHIFT+ENTER necessity:

    =COUNTIF(FORMULA!A$2:B$1400,B5)

    copied down.
    Last edited by NBVC; 01-12-2009 at 05:50 PM. Reason: should've been "without the CSE necessity" not "with..."

+ 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