sumif function

D

dolphinv4

Hi,

I tried to use the sumif function =sumif(range,criteria,
[sum_range]).

For the "criteria", I wanted it such that it'll sum if
the "range" is not equals to cell A1 or B1. I tried =sumif
(d1:d10,not(or(A1,B1)),e1:e10) but it does not work. why?
and it's not supposed to be done this way, how shld i go
about doing it?

val
 
B

Biff

Hi Val!

Sumif will take only a single criteria. Try either of
these:

=SUMIF(D1:D10,"<>"&A1,E1:E10)-SUMIF(D1:D10,A2,E1:E10)

=SUMPRODUCT(--(D1:D10<>A1),--(D1:D10<>A2),--E1:E10)

Biff
 
J

JE McGimpsey

Niggle:

There's no need to use the unary minuses on the E1:E10 argument:

=SUMPRODUCT(--(D1:D10<>A1),--(D1:D10<>A2),E1:E10)
 

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