Summing values if conditions are true

M

mike camburn

Hello, I am fairly new to advanced excel functions. I have a question that
may require multiple steps. I will describe my issue as simply as I can.

In cell E1, I need to SUM the values in column D if columns A, B, & C all
meet specific criteria.

For Example: IF A3=2006, B3=3, & C3=1, THEN D3 should be added to E1.
If any one of the three criteria is not true then D3 should not get added to
E1.

Thanks to everyone who contributes to this site. It has been very helpful.
-Mike
 
R

Ragdyer

To simplify your criteria choices, how about entering them at the top of
their respective columns instead of "hard-coding" them in the formula.
This makes changing them easier then having to revise the formula itself,
plus it helps with equalizing the data formats, since I'll assume that
"2006" is a date.

Try something like this:

=SUMPRODUCT((TEXT(A3:A100,"yyyy")=TEXT(A1,"yyyy"))*(B3:B100=B1)*(C3:C100=C1)*D3:D100)
 
Top