Hi,
I’m planning on taking a course later this year and one of the pre-requities is to know how to use SUMPRODUCT. I use pivot tables extensively but haven’t used SUMPRODUCT before.
I found some information on it and tried to construct a table with months across the top and divisions down the left side. I wanted the SUMPRODUCT to calculate how many claims each division had in each month (from a flat data source).
I range named the columns that contained the data, then tried
^=SUMPRODUCT((Division=$B$5 )*(date=C4)*(claims))
this did not work and I tried several other variations that did not work.
In one place looking for answers I found something about double unary operators so I tried
first with range names then without and found that
^=SUMPRODUCT(–(‘Data’!$H$2:$H$2500=$B$5 ),–(‘Data’!$S$2:$S$2500=C4),’Data’!$BW$2:$BW$2500)
worked.
I’m trying to understand how the function works, but keep hitting dead links when looking for an explanation. Can someone tell me if what I understand is correct?
If the arguments in the first 2 places are not numbers, then you have to use the double unary operator. If they are numbers then you can use the first format. This doesn’t make sense to me, because you are only trying to get the aggregate amount for conditions that match your criteria (eg =B5, =C4) so the 3rd arguments is the only one that is being summed. What difference does it make whether the criteria is a number or text?
Thanks for any help with understanding this function.
capri