Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How do I create a formula for summing the product of cells, based on their value?

I have two columns of values. I want to add up the product of the two values, where the 2nd is grater than 1.

Now I’m using a separate 3rd column to aid in this and sumif the values based on the x2 column.

=SUMIF(B1:B9, ">0", C1:C9)
X1 X2 Prod
4 3 12
4 4 16
5 1 5
6 0 0
10 4 40

The result in this case should be 12+16+40 = 68

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Is it possible to do the same without the 3rd column?

>Solution :

Below should work

=SUMPRODUCT((A2:A6)*(B2:B6)*(B2:B6>1))
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading