Results 1 to 11 of 11

VLookup return sum of multiple occurrences

Threaded View

  1. #1
    Registered User
    Join Date
    11-21-2012
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    7

    VLookup return sum of multiple occurrences

    Hello everyone,

    I am having an issue with using VLookup to return the SUM of values that go with potentially multiple occurences of what I am searching for in a table. I have attached a sample document with roughly the same layout and situation that I am working with.

    Basically, in the first worksheet (parts list), there are all the base part numbers that my group in responsible for (this list is potentially expanding). Then in the second worksheet (parts received), there is a list of all the parts and quantities that get sent to my company, some of which come up multiple times depending on the month/year they came in as well as have different modifications on the base part numbers. i.e. in the parts list worksheet I would have a part number 1234, while in the parts received worksheet I can have 1234 as well as 1234-01 that I would like to be accounted for.

    I am trying to get a single number that represents the total number of parts received by my company that my group is responsible for. This number will be on the third worksheet (Sum or Parts Received). From looking into other threads I have tried a combination of a SUMIF as well as a VLookup as follows:

    =SUMIF('Parts Received'!C15:C40,VLOOKUP('Parts List'!A2:A17,'Parts Received'!A15:F40,6,TRUE),'Parts Received'!F15:F40)

    However this has been generating a value of 0 and I cannot seem to get it to change.

    I appreciate any help that you guys have to offer!

    P.S. Please note that the parts list on both the first and second worksheets are growing, and as I mentioned earlier there are cases where multiple entries with the same part numbers do occer in the second worksheet. Also, I am familiar with VBA so having a macro that performs this calculation is also a possibility.

    Thanks!!
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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