Formula help

M

Mike B.

I'm trying to exclude two lines from a sumif that are by
using the following formula, but it's not returning the
right answer. Is there a simpler way without tying to an
individual cell? =SUMIF
(PRODUCTION$B$3:$B$242,"F",PRODUCTION!$L$2:$L$242)-
(SUMPRODUCT((PRODUCTION!$B$2:$B$242="F")*(PRODUCTION!
$D$2:$D$242="SP")*(PRODUCTION!$L$2:$L$242))+SUMPRODUCT
((PRODUCTION!$B$2:$B$242="F")*(PRODUCTION!$D$2:$D$242="SQ")
*(PRODUCTION!$L$2:$L$242)))
 
P

Paul Corrado

Mike

It looks like you want to include column b items = f and exclude column d
items = SQ or SP

=SUMPRODUCT(($B$2:$B$242="F")*($D$2:$D$242<>"SP")*($D$2:$D$242<>"SQ")*($L$2:
$L$242))

PC
 
M

Mike B.

Right on target! Thanks, Paul...
-----Original Message-----
Mike

It looks like you want to include column b items = f and exclude column d
items = SQ or SP

=SUMPRODUCT(($B$2:$B$242="F")*($D$2:$D$242<>"SP")*
 

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