IF THIS AND THIS BUT NOT THIS!?!? HELP!

G

Guest

I would like to set up a formula that would read something like... add
c1:c100 if they equal X and d1:d100=Y but e1:e100 does not equal Z. I am
familiar with SUMPRODUCT to get the first two parts of the equation, but
don't know how to make it do a "not this". Any help would be VERY MUCH
appreciated!! Thanks!
 
G

Guest

Try something like
=IF(AND(SUM(C1:C100)=X,SUM(D1:D100)=Y,FALSE(SUM(E1:E100)=Z)),SUM(C1:C100)+SUM(D1:D100),"")

There may be a more concise way to do that, but I think it's what you're
looking for.

Dave
 
V

via135 via OfficeKB.com

may be
=SUMPRODUCT(--(C1:C5="X"),--(D1:D5="Y"),--(E1:E5<>"Z"),--(F1:F5))
-via135
 
B

Bernard Liengme

Add (SUM) or COUNT?

=SUMPRODUCT(--(C1:C100)="X"),--(D1:D100="Y"),--(E1:E100<>"Z"))
Or if you prefer
=SUMPRODUCT((C1:C100)="X")*(D1:D100="Y")*(E1:E100<>"Z"))
The pair of symbols <> (less than followed by greater than) make the Excel
NOT EQUAL operator
best wishes
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top