Countifs to Sumproduct for 2003 -> was Simple Countifs.. from Fr

S

Steve

I may have spoke too soon on the prior thread, as I thought the sumproduct
solution worked on all my tabs but it did not. Anyway, I did get the countifs
to work correctly as shown below. But what I need to do is to convert the
below solutions/formulas to sumproducts so they'll work with 2003. Here are
the formulas I have in cells N1, N2 & N3:

=COUNTIFS($P$13:$P$100,">=-100",$P$13:$P$100,"<=100",$P$13:$P$100,"<>")

=COUNTIFS($P$13:$P$100,">=-400",$P$13:$P$100,"<=400",$P$13:$P$100,"<>")-N1

=COUNT($P$13:$P$100)-SUM(N1:N2)

Thanks in advance for everyone's patience with me.

Steve
 
B

Bob Phillips

=SUMPRODUCT(--(($P$13:$P$100>=-100)--(,$P$13:$P$100<=100),--($P$13:$P$100<>""))

=SUMPRODUCT(--($P$13:$P$100>=-400).--($P$13:$P$100<=400),--($P$13:$P$100<>""))-N1
 
S

Steve

Please ignore my prior response (if it shows up). The below worked perfectly,
with a couple of changes to parenthese and comma placements.

These are the corrected formulas that worked:

=SUMPRODUCT(--($P$13:$P$57<=100),--($P$13:$P$57>=-100),--($P$13:$P$57<>""))

=SUMPRODUCT(--($P$13:$P$57<=400),--($P$13:$P$57>=-400),--($P$13:$P$57<>""))-N1

Thanks again,
 

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