Array Gone Awry

A

Arturo

Hello –

colA colB colC
R1 A X 2
R2 A Y 1
R3 B Y 0
R4 B Z 4

{=SUM(IF(A1:A4={"A"},C1:C4,0))} = 3

Correct…

Searching for way to sum colC based on multiple criteria.
How to sum colC for every A in colA that has an associated Y in colB.?

{ =SUM(IF(A1:B4={"A","Y"},C1:C4,0))} doesn’t do it…

Will keep searching KB…

Arturo
 
E

Erin Kotch

{=SUM(IF(A1:A4={"A"},if(B1:B4="Y",C1:C4,0),0))}

You make if B=Y another IF statement if A=A is true.

Hope this helps

Erin
 
R

Ron Rosenfeld

Hello –

colA colB colC
R1 A X 2
R2 A Y 1
R3 B Y 0
R4 B Z 4

{=SUM(IF(A1:A4={"A"},C1:C4,0))} = 3

Correct…

Searching for way to sum colC based on multiple criteria.
How to sum colC for every A in colA that has an associated Y in colB.?

{ =SUM(IF(A1:B4={"A","Y"},C1:C4,0))} doesn’t do it…

Will keep searching KB…

Arturo

=SUMPRODUCT((A1:A4="A")*(B1:B4="Y")*C1:C4)



--ron
 
D

Daniel.M

Hi,
Searching for way to sum colC based on multiple criteria.
How to sum colC for every A in colA that has an associated Y in colB.?

{ =SUM(IF(A1:B4={"A","Y"},C1:C4,0))} doesn’t do it…

For multiple criterias, use sumproduct(), as in:

=SUMPRODUCT((A1:A4="A")*(B1:B4="Y"),C1:C4)

Regards,

Daniel M.
 

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

Top