SUMPRODUCT help

  • Thread starter Thread starter willroy
  • Start date Start date
W

willroy

I am trying to use SUMPRODUCT to calculate either 10% or 15% of
specific cell dependent if there is an "S" or an "A" in a differen
cell.

At the moment its working like this:

If there is a "S" in cell X the answer will be 15% of cell Z

But I want it to work like this:

If there is an "S" in cell X the answer will be 15% of cell Z OR
If there is an "A" in cell X the answer will be 10% of cell Z

I need both formula's to give an answer in the same cell.

Maybe SUMPRODUCT is not the formula im looking for?

Please help.

Wil
 
=SUMPRODUCT((X="S")*(Z*.15)+(X="A")*(Z*.1))

Bob Umlas
Excel MVP
 
Hi
one way:
=IF(X1="S",Z1*0.15,IF(X1="A",Z1*0.1,"")

HTH
Frank
 
You have all read it as X holding either A or S. I read it as containing,
and got in a right pickle with a SUMPRODUCT OR formula with erroir
handling<vbg>

Bob
 
Bob Phillips said:
You have all read it as X holding either A or S. I read it as containing,
and got in a right pickle with a SUMPRODUCT OR formula with erroir
handling<vbg>

It was easier so :-)))

Arvi Laanemets
 
Indeed it was. My solution (or lack of it) is still in tatters on the
floor.

Bob
 
It is certainly smirking! I'll get the b*%$*d, out come the matches.
 

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