Forum Discussion

Shaun Siddiqui's avatar
Shaun Siddiqui
Copper Contributor
Jun 21, 2018

COUNTIFS and Multiple criteria?

I am not sure if the COUNTIFS function is the correct method I should be using, however, I am trying to count something based on multiple criteria. 

 

I need to count or sum the number of End Users and ISV in the table Added in both MI and IL.

This needs to be repeated for Partners in the table Added in MI and IL.

Repeat for Amended, Repeat for Reviewed.

 

I then need the number of Contacts Added for End User and ISV in MI and IL.

Repeat for Amended, Repeat for Reviewed. 

 

I would like these formulas to dynamically change based on Date e.g. Contacts Added 11 June 2018.

 

I have this data accessible in a pivot table, however, it is a lot of filtering to get the required numbers. I have included a filtered pivot table with an example of the data I need for End Users.

 

Much Appreciated if anyone can help :)

 

 

5 Replies

  • Matt Mickle's avatar
    Matt Mickle
    Bronze Contributor

    You can do something like this using a Countifs() formula like this:

     

    =COUNTIFS(I:I,"End User",J:J,"Added ",B:B,"MI")+COUNTIFS(I:I,"End User",J:J,"Added ",B:B,"IL")

     

    You may be having trouble because the word Added in your spreadsheet has a trailing space on the end of it....  i.e. instead of "Added" the values are actually "Added "

     

     

    • Shaun Siddiqui's avatar
      Shaun Siddiqui
      Copper Contributor

      Oh man, a simple space has had me confused for ages. Thanks for the help. I have now put these formulas into a separate table on the main page. Is there a way I can then cycle through these based on the date. For example, I would like to see what has been added, amended and reviewed on the 11th of June 2018.

       

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        It could be

        =COUNTIFS(Sheet1!I:I,"End User",Sheet1!J:J,"Added ",Sheet1!B:B,"MI",Sheet1!N:N,$A$1)+
        COUNTIFS(Sheet1!I:I,"End User",Sheet1!J:J,"Added ",Sheet1!B:B,"IL",Sheet1!N:N,$A$1)

        if in A1 is June 11, 2018 in your locale format

         

Resources