Do I need SUMPRODUCT?

  • Thread starter Thread starter DaveMoore
  • Start date Start date
D

DaveMoore

The following is a formula I am using that totals a range meeting a
single criteria.

=SUMIF(D2:D254,D507,E2:E254)

However, I now want to give an additional condition; that is
(F2:F254) = ""

I think I want SUMPRODUCT but I am not sure how to use it?
Can anyone help?
My thanks to those who can.

Dave Moore
 
Got it!

=SUMPRODUCT(($D$2:$D502=D507)*($F$2:$F502="")*($E$2:$E502))

works for me.

Are there any shorter versions?
 
Hi

Not shorter, but this one may give you some gain in speed, when you have a
lot of such formulas

=SUMPRODUCT(--($D$2:$D502=D507),--($F$2:$F502=""),($E$2:$E502))
 
SUM(($D$2:$D502=D507)*($F$2:$F502="")*($E$2:$E502))

Fewer key stroke than sumproduct
ctrl>shift enter (not just enter)
 

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

Back
Top