SumIF with condition and exception

S

Scott A

I need help with a SUMIF formula that is needed that adds the amount based on
one condition but excludes another.

Example:

A B C
Prsn Type Contracts
1 JG MP $8000.00
2 JG DV $1200.00
3 JG MP $10000.00
4 SA AF $6000.00
5 SA DV $4500.00
4 JG AF $3000.00
5 JG DV $1500.00

I need it to calculate the total contract amount for all of JG's, except for
the types marked as MP.

Any help would be great.
 
J

Jacob Skaria

Dear Scott

Use SUMPRODUCT()

=SUMPRODUCT(--(A2:A10="JG"),--(B2:B10<>"MP"),--(C2:C10))

If this post helps click Yes
 
S

Scott A

I am doing this function on another worksheet and by doing this I get a
#VALUE! error that says "A value used in the formula is of the wrong data
type". Do you know how to correct this?
 

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