Help with complex SUMPRODUCT formula

D

David Lipetz

Hi,

Getting this SUMPRODUCT forumula to work has me stumped.

For range: $E$3:$E$352 is not blank
For range: $S$3:$S$352 is equal to or greater than $P$3:$P$352 *2 (cells
where P is => 2x S)
SUM Range:$S$3:$S$352

I've come up with this formula, but clearly it does not work:
=SUMPRODUCT(--($E$3:$E$352<>0),(($S$3:$S$352>=($P$3:$P$352*2))),($S$3:$S$352))

Additionally, I need a derivation of this forumula which will count (rather
than sum) the number of cells in S which meet the first two criteria.

I tried this, but it does not work:
=SUMPRODUCT(--($E$3:$E$352<>0),--(($S$3:$S$352>=($P$3:$P$352*2))))

Appreciate any guidance that can be provided.

Thanks,
David
 
D

David Lipetz

Never mind. My formula's did work. Seems like my audit was flawed and the
formula was correct.
 
P

Pete_UK

Try this to count them:

=SUMPRODUCT(($E$3:$E$352<>0)*($S$3:$S$352>=$P$3:$P$352*2))

and this to sum them:

=SUMPRODUCT(($E$3:$E$352<>0)*($S$3:$S$352>=$P$3:$P$352*2)*($S$3:$S$35­
2))

Hope this helps.

Pete
 
D

David Lipetz

Thanks Pete! Your response helped me clean up and correct my formulas.

Really appreciate the fast response.

Thanks,
David


Try this to count them:

=SUMPRODUCT(($E$3:$E$352<>0)*($S$3:$S$352>=$P$3:$P$352*2))

and this to sum them:

=SUMPRODUCT(($E$3:$E$352<>0)*($S$3:$S$352>=$P$3:$P$352*2)*($S$3:$S$35­
2))

Hope this helps.

Pete
 
P

Pete_UK

Thanks for feeding back - I just happened to be browsing when your
post came in.

Pete
 

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