The following guide to the COUNTIF function for multiple criteria in Excel explains how to use COUNTIFS to count cells that meet multiple conditions. The COUNTIFS function allows you to specify multiple criteria ranges and conditions, making it more versatile than COUNTIF. The tutorial below provides step-by-step instructions, examples, and practical applications in financial analysis, such as selecting companies based on multiple financial metrics.
What is COUNTIF Multiple Criteria?
The Excel formula to countif multiple criteria[1] is =COUNTIFS(). The “s” at the end makes it plural and, therefore, implies that there are multiple criteria (2 or more).
Using the examples and illustrations below, this tutorial will show you exactly how to use COUNTIFS in Excel.
How To Use COUNTIF Multiple Criteria
COUNTIFS works just like countif, except you can add additional criteria separated by commas. Here are step-by-step instructions on how to do it.
Step 1: Document the criteria or conditions you wish to test for. Step 2: Type “= COUNTIFS (“ and select the range you want to test the first criteria on. Step 3: Input the test for the criteria. Step 4: Select the second range you want to test (it can be the same range again, or a new one). Step 5: Input the test for the criteria. Step 6: Repeat the above as many times as necessary. Step 7: Close “)” and press Enter.
Example of COUNTIF with Multiple Criteria
This screenshot shows counting with multiple conditions in action. As you will see, each of the criteria is being tested, and Excel is counting the number of times the result from the test is true. This is how to use Excel countif multiple criteria:
Download the Free Template
Download CFI’s Excel template to advance your finance knowledge and perform better financial analysis.
Why Use COUNTIF
There are many instances where you might want to count the number of times multiple criteria are met. In finance, this can be used to select companies that fit a certain profile. As in the case above, we wanted to find out how many companies were over a certain Market Cap, but below a certain EV/EBITDA multiple and below a certain PE ratio.
Video Tutorial – COUNTIFS Function in Excel
To learn more about how to use the COUNTIFS Function in Excel, check out the video below:
Thank you for reading the CFI guide to countif multiple criteria in Excel. If you want to become an Excel power user, we’ve generated a large Excel resources database of all the most important formulas and functions, Excel shortcuts, and general best practices.
Some of our most useful spreadsheet resources include:
Take your learning and productivity to the next level with our Premium Templates.
Upgrading to a paid membership gives you access to our extensive collection of plug-and-play Templates designed to power your performance—as well as CFI's full course catalog and accredited Certification Programs.
Gain unlimited access to more than 250 productivity Templates, CFI's full course catalog and accredited Certification Programs, hundreds of resources, expert reviews and support, the chance to work with real-world finance and research tools, and more.