The SUMPRODUCT function can be used to add the products of multiple lists/arrays. In this case, the formula is looking through two lists.
What it is basically doing is searching the 'Components' column for whatever is in cell Tracking!$Q$15 (Hydraulic Cylinders) *AND* the 'Date' column for Month=10 (October). If those conditions are both true, it returns the number in that same row from the 'Quantity' column.
It does that for every row in the list/array (so you have to make sure the ranges are all the same size), then adds them all together. So, for your example, the formula found 11 rows where the two conditions matched, and returned the sum of the quantities in that range. Since three of the rows had a quantity of 2 and 8 of the rows had a quantity of 1, the result is 14 (2+2+2+1+1+1+1+1+1+1+1).
By the way, the formula above can also be written this way:
There are a ton of websites with more information than I have time to provide here... just do a search for EXCEL SUMPRODUCT and you'll hit the jackpot.
- Vince
Bookmarks