Count multiple condition

  • Thread starter Thread starter Bob Phillips
  • Start date Start date
B

Bob Phillips

=SUMPRODUCT((MOD(COLUMN(D2:K20),2)=0)*(D2:K20))

adjust the range to suit

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Not to pick Bob but yours Sums. I think whygh was looking for a count. I know
that because you showed me how to do this... :-)
--
HTH...

Jim Thomlinson


Bob Phillips said:
=SUMPRODUCT((MOD(COLUMN(D2:K20),2)=0)*(D2:K20))

adjust the range to suit

--

HTH

RP
(remove nothere from the email address if mailing direct)
 
Hell everyone,

I want to count the cells of column, the condition are
1. column Number is even. such as Column D,F,H...
2. the value if cell is greater then zer0.

How to write the formula , I have no idea.

Thanks
 
Thank you guys!

I tried

"=SUMPRODUCT((MOD(COLUMN(2:2), 2)=0)*(2:2>0))"

it works.

AS to
"=SUMPRODUCT((MOD(COLUMN(D2:K20),2)=0)*(D2:K20))" ,
It is the sum of the even columns and values greater than zero. I also
use it .

Vivian
 

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