SUMPRODUCT

  • Thread starter Thread starter MIK
  • Start date Start date
M

MIK

HI,

Can someone help me please?
Cell "L21" needs a total of following;
If code "BC" is found in range "B14:B391", find value from "H14:H391" and
then multply with a percentage rate in "A1"

Thank you.
 
=VLOOKUP("BC",B14:H391,7)*A1

assuming that A1 is already a percentage
 
=SUMPRODUCT(--(B14:B391="BC"),(H14:H391))
will give you the SUM for rows having BC in Col B

Multiply it with A1 to get the percentage like this
=(SUMPRODUCT(--(B14:B391="BC"),(H14:H391)))*A1

Use
=(SUMPRODUCT(--(B14:B391="BC"),(H14:H391)*A14:A391))
If you have percentages in A14:A391 for each row
 

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