Simple Sumproduct of 2 Columns, with some blank cells in range

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

ColA ColB
5 10
5 10
5
5 10

I'd like to sum the products of the two columns, while ignoring rows that
have a blank cell, so in this case (5*10) + (5*10) + (5*10) --->it's
skipping the third row.

I'm not having luck adjusting a simple =sumproduct(ColA,ColB) formula. I
did a search but didn't come up with anything that I understand how to
adjust.

Thanks for your help!
SteveC
 
aha, if you use an array formula ctrl shift enter it works... but is there
another way?
 
try this. Need NOT array enter
=SUMPRODUCT((C2:C5>0)*(D2:D5>0)*C2:D5)
 
=SUMPRODUCT(A1:A4,B1:B4)

will do it.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
 
Don and Bob, thanks.

Bob Phillips said:
=SUMPRODUCT(A1:A4,B1:B4)

will do it.

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)
 

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