SUMPRODUCT(--($A$1:$A$20000=I5606),--(E$1:E$20000=1),$D$1:$D$20000)
best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
"cherman" wrote in message
...
I am trying to sum one column when another column = a certain value and
when
a 2nd column = a certain value. Here is the formula I have so far.
However,
it is summing everything in column D. Any suggestions would be greatly
appreciated, even if it is a completely different formula.
=IF(SUMPRODUCT(--($A$1:$A$20000=I5606),--(E$1:E$20000=1)),SUM($D$1:$D$20000),0)
Thanks,
Clint