+ Reply to Thread
Results 1 to 2 of 2

multiple requirements for Countif statment

  1. #1
    Forum Contributor
    Join Date
    03-14-2005
    Location
    USA
    MS-Off Ver
    Office 365
    Posts
    172

    multiple requirements for Countif statment

    is there a way to put multiple requirement for a countif statment, for example I want to it to do a count of two columns, if column 1 has the correct number, for example "500" then it will do a count of column 2 which would have a different criteria, for example "apples".


    500 apple
    600 orange
    500 apple
    100 banana
    500 cherry
    600 apple

    so for the example above I would want a count of 2. two occurances of apple in department 500. Anyway we can do this, two criterias?

  2. #2
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    =SUMPRODUCT(--($A$1:$A$6=500),--($B$1:$B$6="Apples"))

    OR

    =SUMPRODUCT(--($A$1:$A$6=D1),--($B$1:$B$6=E1))

    ...where D1 contains your first criterion, such as 500, and E1 contains your second criterion, such as Apples.

    Hope this helps!

+ 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