+ Reply to Thread
Results 1 to 5 of 5

how do I use COUNTIF in excel. using criteria from multiple colums

  1. #1
    Zuki
    Guest

    how do I use COUNTIF in excel. using criteria from multiple colums

    count number of matching cells in to colums where their value are greater
    than 0. i.e. D5:D193 and I5:I192 - all corresponding cells from the two
    ranges that have value of more than zero to be counted as one occurrance. (D8
    value 2 and I8 value 4, to be counted as one)

  2. #2
    KL
    Guest

    Re: how do I use COUNTIF in excel. using criteria from multiple colums

    Try:

    =SUMPRODUCT(--((D5:D193>0)+(I5:I193>0)>0))

    Regards,
    KL


    "Zuki" <[email protected]> wrote in message
    news:[email protected]...
    > count number of matching cells in to colums where their value are greater
    > than 0. i.e. D5:D193 and I5:I192 - all corresponding cells from the two
    > ranges that have value of more than zero to be counted as one occurrance.
    > (D8
    > value 2 and I8 value 4, to be counted as one)




  3. #3
    Bob Phillips
    Guest

    Re: how do I use COUNTIF in excel. using criteria from multiple colums

    I read it as

    =SUMPRODUCT(--(D5:D193>0),--(I5:I193>0))

    --
    HTH

    Bob Phillips

    "KL" <[email protected]> wrote in message
    news:[email protected]...
    > Try:
    >
    > =SUMPRODUCT(--((D5:D193>0)+(I5:I193>0)>0))
    >
    > Regards,
    > KL
    >
    >
    > "Zuki" <[email protected]> wrote in message
    > news:[email protected]...
    > > count number of matching cells in to colums where their value are

    greater
    > > than 0. i.e. D5:D193 and I5:I192 - all corresponding cells from the two
    > > ranges that have value of more than zero to be counted as one

    occurrance.
    > > (D8
    > > value 2 and I8 value 4, to be counted as one)

    >
    >




  4. #4
    KL
    Guest

    Re: how do I use COUNTIF in excel. using criteria from multiple colums

    Hi Bob,

    I have re-read the original post and I am still not sure if Teresa wants to
    count the rows where:

    1) at least one of the cells D# and I# are greater than 0
    or
    2) both cells D# and I# are greater than 0 at the same time

    ....but it may be my English :-)

    Regards,
    KL


    "Bob Phillips" <[email protected]> wrote in message
    news:[email protected]...
    >I read it as
    >
    > =SUMPRODUCT(--(D5:D193>0),--(I5:I193>0))
    >
    > --
    > HTH
    >
    > Bob Phillips
    >
    > "KL" <[email protected]> wrote in message
    > news:[email protected]...
    >> Try:
    >>
    >> =SUMPRODUCT(--((D5:D193>0)+(I5:I193>0)>0))
    >>
    >> Regards,
    >> KL
    >>
    >>
    >> "Zuki" <[email protected]> wrote in message
    >> news:[email protected]...
    >> > count number of matching cells in to colums where their value are

    > greater
    >> > than 0. i.e. D5:D193 and I5:I192 - all corresponding cells from the two
    >> > ranges that have value of more than zero to be counted as one

    > occurrance.
    >> > (D8
    >> > value 2 and I8 value 4, to be counted as one)

    >>
    >>

    >
    >




  5. #5
    Bob Phillips
    Guest

    Re: how do I use COUNTIF in excel. using criteria from multiple colums

    Hi KL,

    I could see where your thinking came from , it wasn't clear, and that is not
    just your English :-).

    --
    HTH

    Bob Phillips

    "KL" <[email protected]> wrote in message
    news:Ok6g%[email protected]...
    > Hi Bob,
    >
    > I have re-read the original post and I am still not sure if Teresa wants

    to
    > count the rows where:
    >
    > 1) at least one of the cells D# and I# are greater than 0
    > or
    > 2) both cells D# and I# are greater than 0 at the same time
    >
    > ...but it may be my English :-)
    >
    > Regards,
    > KL
    >
    >
    > "Bob Phillips" <[email protected]> wrote in message
    > news:[email protected]...
    > >I read it as
    > >
    > > =SUMPRODUCT(--(D5:D193>0),--(I5:I193>0))
    > >
    > > --
    > > HTH
    > >
    > > Bob Phillips
    > >
    > > "KL" <[email protected]> wrote in message
    > > news:[email protected]...
    > >> Try:
    > >>
    > >> =SUMPRODUCT(--((D5:D193>0)+(I5:I193>0)>0))
    > >>
    > >> Regards,
    > >> KL
    > >>
    > >>
    > >> "Zuki" <[email protected]> wrote in message
    > >> news:[email protected]...
    > >> > count number of matching cells in to colums where their value are

    > > greater
    > >> > than 0. i.e. D5:D193 and I5:I192 - all corresponding cells from the

    two
    > >> > ranges that have value of more than zero to be counted as one

    > > occurrance.
    > >> > (D8
    > >> > value 2 and I8 value 4, to be counted as one)
    > >>
    > >>

    > >
    > >

    >
    >




+ 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