Summing values if conditions are true
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 |
Summing values if conditions are true
[E1] =SUMPRODUCT(--(A2:A100=2006),--(B2:B100=3),--(C2:C100=1),D2:D100)
Regards, KL "mike camburn" <mike wrote in message ... 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 |
Summing values if conditions are true
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) -- HTH, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "mike camburn" <mike wrote in message ... 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 |
All times are GMT +1. The time now is 11:56 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com