+ Reply to Thread
Results 1 to 5 of 5

How do I COUNTIF in excel using multiple criteria?

  1. #1
    DJ_Swammi
    Guest

    How do I COUNTIF in excel using multiple criteria?

    I am trying to set up a function which looks to see if multiple criteria,
    across different columns are met.

    Idealy I should think the following function should work, but alas, it does
    not:

    =COUNTIF(AND(A1:A5=1, B1:B5=2))

    Any suggestions?

  2. #2
    Ken Wright
    Guest

    Re: How do I COUNTIF in excel using multiple criteria?

    =SUMPRODUCT((A1:A5=1)*(B1:B5=2)*(C1:C5=3)) etc

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ------------------------------*------------------------------*----------------
    It's easier to beg forgiveness than ask permission :-)
    ------------------------------*------------------------------*----------------


    "DJ_Swammi" <[email protected]> wrote in message
    news:[email protected]...
    >I am trying to set up a function which looks to see if multiple criteria,
    > across different columns are met.
    >
    > Idealy I should think the following function should work, but alas, it
    > does
    > not:
    >
    > =COUNTIF(AND(A1:A5=1, B1:B5=2))
    >
    > Any suggestions?




  3. #3
    bpeltzer
    Guest

    RE: How do I COUNTIF in excel using multiple criteria?

    Check this site for using SUMPRODUCT for calculations involving multiple
    criteria:
    http://www.xldynamic.com/source/xld.SUMPRODUCT.html
    Another means is using the DCOUNT function.


    "DJ_Swammi" wrote:

    > I am trying to set up a function which looks to see if multiple criteria,
    > across different columns are met.
    >
    > Idealy I should think the following function should work, but alas, it does
    > not:
    >
    > =COUNTIF(AND(A1:A5=1, B1:B5=2))
    >
    > Any suggestions?


  4. #4
    DJ_Swammi
    Guest

    Re: How do I COUNTIF in excel using multiple criteria?

    Thank you, this has been very helpful!



  5. #5
    Ken Wright
    Guest

    Re: How do I COUNTIF in excel using multiple criteria?

    You're welcome :-)


    "DJ_Swammi" <[email protected]> wrote in message
    news:[email protected]...
    > Thank you, this has been very helpful!
    >
    >




+ 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