sumproduct formula

T

Todd

I am trying to get a formula that
1. if a cell in column c is greater than zero will multiply that cell by
another and total the result by column.

What I have is (which is not working)

=SUMPRODUCT(--($C$7:$C$64>0),$C$7:$C$64*D$7:D$64)


Column C Column D
5 100
0 400
2 300
4 200

= 500+600+800


Thanks,


Todd
 
D

daddylonglegs

Hi Todd

Your formula should work if you just have numbers or blanks in C7:D64,
what result do you get? Why doesn't it work?

This slight modification might help

=SUMPRODUCT(--($C$7:$C$64>0),$C$7:$C$64,D$7:D$64)

although if you never have negative values in column C you could just
use

=SUMPRODUCT($C$7:$C$64,D$7:D$64)
 
T

Todd

I was wrong! it wasn't that formula but the formula being used to check it
with. Thank you for the help.
 

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

Similar Threads

Vlookup or similar 7
Sumproduct? 3
Sumproduct giving #Value error 5
Finding dynamic maxima 9
VLOOKUP question 5
Stock control formula 0
Need an Equation 6
Variable Sumproduct Range 6

Top