Excel Basic function

  • Thread starter Thread starter Lesotho
  • Start date Start date
L

Lesotho

Hi

Know this sounds daft but cant work out how to carry out conditiona
sum of 2 ranges based on the result of a 3rd variable.

i.e. If (Range A = value, then sum (range b * range c)

Any help greatfully appreciate
 
=SUMPRODUCT(--(A1:A100=NumericalValue),B1:B100*C1:C100)

OR

=SUMPRODUCT(--(A1:A100="TextValue"),B1:B100*C1:C100)

Hope this helps!
 

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