A
Angie
I hope someone can help me. How can I sum the products of columns A and B,
but only if the value in column C meets a certain criteria (like = 51)?
but only if the value in column C meets a certain criteria (like = 51)?
Angie said:I hope someone can help me. How can I sum the products of columns A and B,
but only if the value in column C meets a certain criteria (like = 51)?
Angie said:Your are correct for that example. I should have been more specific. What I
really need is a wildcard that looks for values in column C that CONTAIN 7,
rather than start with 7. Any ideas?
Glenn said:=SUMPRODUCT(A1:A100*B1:B100*(NOT(ISERROR(FIND("7",C1:C100)))))
Marcelo may have intended to say not =sumproduct(--(c8:c13)*(a8:b13))
but either =sumproduct((c8:c13=51)*(a8:a13)*(b8:b13)) or
=sumproduct(--(c8:c13=51),a8:a13,b8:b13) ?
[You don't need the double unary minus if you've already got an arithmetic
operator such as the * for multiply.]
--
David Biddulph
Marcelo said:Try
Assuming your data is on a8:c13
=sumproduct(--(c8:c13)*(a8:b13))"Angie" escreveu:
Glenn said:Or, you can replace the "7" with a cell reference.
=SUMPRODUCT(A1:A100*B1:B100*(NOT(ISERROR(FIND(E1,C1:C100)))))
Harlan said:Or you could eliminate a function call
=SUMPRODUCT(A1:A100*B1:B100*ISNUMBER(FIND(E1,C1:C100)))
Yes, but did you try your formula with ...*(a8:b13)) ?
Did that give the product of columns A and B? I think not.
--
David Biddulph
Marcelo said:Yes David, I repost the correct with the =51
thanks
--
regards from Brazil
Thanks in advance for your feedback.
Marcelo
"David Biddulph" escreveu:
Marcelo may have intended to say not =sumproduct(--(c8:c13)*(a8:b13))
but either =sumproduct((c8:c13=51)*(a8:a13)*(b8:b13)) or
=sumproduct(--(c8:c13=51),a8:a13,b8:b13) ?
[You don't need the double unary minus if you've already got an
arithmetic
operator such as the * for multiply.]
--
David Biddulph
Try
Assuming your data is on a8:c13
=sumproduct(--(c8:c13)*(a8:b13))
"Angie" escreveu:
I hope someone can help me. How can I sum the products of columns A
and
B,
but only if the value in column C meets a certain criteria (like =
51)?
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.