Sumproduct???

kasbac

Active Member
Joined
Jan 2, 2008
Messages
344
Hi there

I have a little issue with a sumproduct that I was wondering if I could get some help with. Im not sure if the solution would be to go away from sumproduct?

I would like for the formula to sum colloum A if in the same line:

Colloum I = claimin
Colloum M = Q2 or Q3
N does not equal cancelled, withdrawn or rejected.

Hope that some one will be able to help me out

KB
 
Hi there

I have a little issue with a sumproduct that I was wondering if I could get some help with. Im not sure if the solution would be to go away from sumproduct?

I would like for the formula to sum colloum A if in the same line:

Colloum I = claimin
Colloum M = Q2 or Q3
N does not equal cancelled, withdrawn or rejected.

Hope that some one will be able to help me out

KB

Code:
=SUMPRODUCT(
  $A$2:$A$100,
  --($I$2:$I$100="claimin"),
  --ISNUMBER(MATCH($M$2:$M$100,{"Q2","Q3"},0)),
  --ISNA(MATCH($N$2:$N$100,{"cancelled","withdrawn","rejected"},0)))
 
Upvote 0

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
There are definate advantages and disadvantages to all methods...

Where the -- will not work for the m1:m100={"Q2","Q3"], but the * method does...

However,

the * method will fail if there are text values in any of the cells in the Sum Range A1:A100, but the -- method will not
 
Upvote 0
I see, that's why you used --((M2:M20="Q2")+(M2:M20="Q3")),. I tried to use the OR function with sumproduct but kept getting a VALUE! error.
 
Upvote 0
Yep, that's the syntax I use for OR in Sumproduct. I've never been able to get Or to work either...
 
Upvote 0
hi guys

thx for the quick reply, i just forgot one further condition that i was hopeing for some help to incorporate:

the value in K need to = the cell value in coloum R

so what i need is these four conditions:

Colloum I = claimin (text string)
Colloum M = Q2 or Q3 (text string)
N does not equal cancelled, withdrawn or rejected (text strings)
value in colloum K needs to = the cell value in colloum R (number)

once again thx for all the help
 
Upvote 0
=SUMPRODUCT(--(K1:K100=R1:R100),--(I1:I100="Claimin"),--(M1:M100=Q2)+(M1:M100=Q3),--(NOT(ISNUMBER(MATCH(N1:N100,{"Cancelled","Withdrawn","Rejected"})))),A1:A100)
 
Upvote 0
hi guys

thx for the quick reply, i just forgot one further condition that i was hopeing for some help to incorporate:

the value in K need to = the cell value in coloum R

so what i need is these four conditions:

Colloum I = claimin (text string)
Colloum M = Q2 or Q3 (text string)
N does not equal cancelled, withdrawn or rejected (text strings)
value in colloum K needs to = the cell value in colloum R (number)

once again thx for all the help

Do you mean...

Code:
=SUMPRODUCT(
  $A$2:$A$100,
  --($I$2:$I$100="claimin"),
  --ISNUMBER(MATCH($M$2:$M$100,{"Q2","Q3"},0)),
  --ISNA(MATCH($N$2:$N$100,{"cancelled","withdrawn","rejected"},0))
  --($K$2:$K$100=$R$2:$R$100))

or is it a specific value in R like in...

Code:
=SUMPRODUCT(
  $A$2:$A$100,
  --($I$2:$I$100="claimin"),
  --ISNUMBER(MATCH($M$2:$M$100,{"Q2","Q3"},0)),
  --ISNA(MATCH($N$2:$N$100,{"cancelled","withdrawn","rejected"},0))
  --($K$2:$K$100=$R$2))
 
Upvote 0
Hi there

Hmmm i seem to be having som problems applying the formula? When I try to use xld first formula:

I get an error and the area "N20," is highlighted?


by the way the data that i need summed in colloum A is numbers
 
Upvote 0
Hi there

Hmmm i seem to be having som problems applying the formula? When I try to use xld first formula:

I get an error and the area "N20," is highlighted?


by the way the data that i need summed in colloum A is numbers

Did you try alternative set ups?
 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,449
Members
448,966
Latest member
DannyC96

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top