Hi Jim333!
Fast replies is what these groups are known for!
Main purpose of the function SUMPRODUCT? Probably not what we might
expect when we first look at it. I know that I was using it for other
purposes first.
SUMPRODUCT's official description is that it returns the sum of the
products of corresponding array components. In a typical case we might
have two (or more) columns of numbers and want to sum the products of
each pair (or more) numbers in each row. Internally the function
multiplies together the pairs (or more) and sums up the answers.
We adapt this feature to allow counting or summing based upon
conditions. We use arrays that contain conditions that resolve to TRUE
or FALSE and the multiplication of those results produces 1 if both
conditions are TRUE and 0 if either or both are FALSE. In it's
"counting" we are just summing the results of those multiplications.
In its "summing" form there is an addition argument that is the range
that contains the numeric data. In that for the result of the
multiplication of the conditions is applied to the corresponding data.
If all conditions are TRUE then 1 * Data means that it gets added. If
any condition is FALSE then 0 * Data means it doesn't get added.
--
Regards
Norman Harker MVP (Excel)
Sydney, Australia
[email protected]
Excel and Word Function Lists (Classifications, Syntax and Arguments)
available free to good homes.