+ Reply to Thread
Results 1 to 5 of 5

Count multiple condition

  1. #1
    Registered User
    Join Date
    12-15-2005
    Posts
    4

    Count multiple condition

    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

  2. #2
    Bob Phillips
    Guest

    Re: Count multiple condition

    =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)


    "whygh" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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
    >
    >
    > --
    > whygh
    > ------------------------------------------------------------------------
    > whygh's Profile:

    http://www.excelforum.com/member.php...o&userid=29679
    > View this thread: http://www.excelforum.com/showthread...hreadid=493965
    >




  3. #3
    Jim Thomlinson
    Guest

    RE: Count multiple condition

    This is for row 2...

    =SUMPRODUCT((MOD(COLUMN(2:2), 2)=0)*(2:2>0))
    --
    HTH...

    Jim Thomlinson


    "whygh" wrote:

    >
    > 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
    >
    >
    > --
    > whygh
    > ------------------------------------------------------------------------
    > whygh's Profile: http://www.excelforum.com/member.php...o&userid=29679
    > View this thread: http://www.excelforum.com/showthread...hreadid=493965
    >
    >


  4. #4
    Jim Thomlinson
    Guest

    Re: Count multiple condition

    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" wrote:

    > =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)
    >
    >
    > "whygh" <[email protected]> wrote in
    > message news:[email protected]...
    > >
    > > 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
    > >
    > >
    > > --
    > > whygh
    > > ------------------------------------------------------------------------
    > > whygh's Profile:

    > http://www.excelforum.com/member.php...o&userid=29679
    > > View this thread: http://www.excelforum.com/showthread...hreadid=493965
    > >

    >
    >
    >


  5. #5
    Registered User
    Join Date
    12-15-2005
    Posts
    4
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1