Please help with Sumproduct, adding additional criteria

G

Gina

=SUMPRODUCT((Data!E$1:E$2514>=Lists!A13)*(Data!E$1:E$2514<Lists!B13)*(Data!K$1:K$2514="Other"))

I'd like to have this same number returned, but I'd like it to filter out
when

=Data!M1:M2500 does NOT equal "FA" or "Nonrecordable".

Can anyone help me with this?

Conversely, I'd like the same calculation in another cell

=SUMPRODUCT((Data!E$1:E$2514>=Lists!A13)*(Data!E$1:E$2514<Lists!B13)*(Data!K$1:K$2514="Other"))

that adds exclusively counts when the values of
=Data!M1:M2500 values are "FA" or Recordable"

Thank you.
 
J

JMB

try

=SUMPRODUCT((Data!E$1:E$2514>=Lists!A13)*(Data!E$1:E$2514<Lists!B13)*(Data!K$1:K$2514="Other")*(Data!M$1:M$2514<>{"FA", "Nonrecordable"}))

change <> to = for the second part of your question.
 
P

Per Jessen

Hi

Try this:

=SUMPRODUCT(--(Data!E$1:E$2514>=Lists!A13),--(Data!E$1:E$2514<Lists!B13),--(Data!K$1:K$2514="Other"),(AND(Data!$M$1:$M$2514<>"FA")*(Data!$M$1:$M$2514<>"Nonrecordable")))

and

=SUMPRODUCT((Data!E$1:E$2514>=Lists!A13)*(Data!E$1:E$2514<Lists!B13)*(Data!K$1:K$2514="Other"))-=SUMPRODUCT(--(Data!E$1:E$2514>=Lists!A13),--(Data!E$1:E$2514<Lists!B13),--(Data!K$1:K$2514="Other"),(AND(Data!$M$1:$M$2514<>"FA")*(Data!$M$1:$M$2514<>"Nonrecordable")))

Regards,
Per
 
J

JMB

Sorry - my previous suggestion will not work for the <> condition.

=SUMPRODUCT((Data!E$1:E$2514>=Lists!A13)*(Data!E$1:E$2514<Lists!B13)*(Data!K$1:K$2514="Other")*(Data!M$1:M$2514<>"FA")*(Data!M$1:M$2514<>"Nonrecordable"))
 
T

Teethless mama

=SUMPRODUCT((Data!E$1:E$2514>=Lists!A13)*(Data!E$1:E$2514<Lists!B13)*(Data!K$1:K$2514="Other")*(ISNA(MATCH(Data!M$1:M$2514,{"FA","Nonrecordable"},))))
 
G

Gina

Thank you guys so much. It's always nice to know that when I get to the
point of banging my head into the wall, I can find help here. (You are the
ones who taught me how to use sumproduct in the first place!)

Gina
 

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