By default, the COUNTIFS function applies AND logic. When you supply multiple conditions, all conditions must match in order to generate a count.
One solution is to supply multiple criteria in an array constant like this:
This will cause COUNTIFS to return two results: a count for "complete" and a count for "pending", packaged in an array result like this:
To get a final total, we wrap COUNTIFS inside SUM. The SUM function then sums all items in the array and returns the result.
Be careful not to double-count
Whenever you use multiple criteria with OR logic, be careful not to double-count. In this example, the two criteria are mutually exclusive, but in other scenarios it is easy to accidentally double count by applying criteria that are too loose.
Learn Excel formulas and functions with concise, clear videos. Master absolute/relative addresses, dates, text, named ranges, and tools for troubleshooting. Each video comes with a practice worksheet and audio transcript. Instant access and complete 100% guarantee. Start today!