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!!
Bookmarks