# Countif

Multiple Criteria

### #1 JPK1066

JPK1066

• Members
• 101 posts

Posted 04 January 2018 - 04:32 PM

I thought that I could use the Countif function and have more than one criteria.

I will show you some sample data on an Excel WS with 2 columns that have been color highlighted.

If I wanted to count all the instances where the team in question is A (Away) ...1st criteria

And all the times that the team was showing a positive number in column M ....2nd criteria....

While asking this question I should ask how I would query a count if I had 3 or more criteria from different columns?

How would I count these occurrences?

Respectfully,

JPK1066

### #2 Jonathan

Jonathan

• 887 posts

Posted 05 January 2018 - 05:08 PM

Hi JPK,

The usual way to create this kind of summary would be to use a pivot table, but you can easily create a COUNTIF with multiple criteria by using its counterpart function: COUNTIFS.

To count all instances where column E shows 'A' and column M is greater than 0, you can use this formula:

=COUNTIFS(E3:E18,"A",M3:M18,">0")

The COUNTIFS function is covered in Expert Skills Session 3: Advanced Functions (lesson 3-6).

Pivot Tables are covered in Expert Skills Session 8: Pivot Tables.

I hope this is the solution you were looking for, but please feel free to reply if you need any more help with this.

Jonathan is part of the professional team who answer Excel-related questions posted on the ExcelCentral.com forums.
Jonathan also tests our courses prior to publication and has worked on all of our ten world bestselling Excel books for Excel 2007, Excel 2010, Excel 2013, Excel 2016 for Windows and Excel 2016 for Apple Mac. Jonathan has also worked on over 850 video lessons for or video courses covering Excel 2007, Excel 2010 and Excel 2013.
As well as extensive Excel knowledge, Jonathan has worked in the IT world for over thirteen years as a programmer, database designer and analyst for some of the world's largest companies.

#### 0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users