Sum If with two ranges and condition

G

Guest

Hy

I have to sum the values from A1:A100 if B1:B100="01-01-2006" and C1:C100="1"

With only one it works like this sumif(B1:B100;"01-01-2006"; A1:A100), but I
want some thing like this sumif(B1:B100;"01-01-2006"AND(C1:C100;"1"); A1:A100)

Any help please
 
G

Guest

Hi !
It don't work ! I know that exist a way to do it ! summing with to criteria:
Sum A1:A100
If B1:B100 = "text" and C1:C100 = "text1"

Thanks any way

"JE McGimpsey" escreveu:
 
J

JE McGimpsey

If both criteria fields are text:

=SUMPRODUCT(--(B1:B100="01-01-2006");--(C1:C100="1");A1:A100)
 
G

Guest

Hi again,

What I'm doing wrong ?

=SOMA.SE(Plano!$C$9:plano!$C$724;"01-12-2004";Plano!$L$9:plano!$L$724)
This is OK.
when I try your sugestion to put one more criteria it don't work the cell
stay blank with the formula inside (no error)

=SOMARPRODUTO(--(Plano!$C$9:plano!$C$724="01-12-2004");--(Plano!$P$9:plano!$P$724="1");Plano!$L$9:plano!$L$724)

Thanks in advance



"JE McGimpsey" escreveu:
 
G

Guest

Thanks, with your indications I could solve the problem like this:

=SOMARPRODUTO(--(Plano!$C$9:plano!$C$724=DATA(2004;12;1));--(Plano!$P$9:plano!$P$724=1);Plano!$L$9:plano!$L$724)

"JE McGimpsey" escreveu:
 
R

RobinMass

Thank you JE. This worked great!

Nuno Jácome said:
Thanks, with your indications I could solve the problem like this:

=SOMARPRODUTO(--(Plano!$C$9:plano!$C$724=DATA(2004;12;1));--(Plano!$P$9:plano!$P$724=1);Plano!$L$9:plano!$L$724)

"JE McGimpsey" escreveu:
 

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