A comprehensive tutorial on how to use Excel's COUNTIFS function, including tips, common pitfalls, and advanced scenarios.
COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)
=COUNTIFS(ProductRange, "Shirt white")
=COUNTIFS(ProductRange, "Shirt white", MonthRange, "February")
=COUNTIFS(ProductRange, "Shirt white", MonthRange, "February", CountryRange, "USA")
=COUNTIFS(ProductRange, "Shirt white") + COUNTIFS(ProductRange, "Shirt blue")
=SUM(COUNTIFS(ProductRange, {"Shirt white","Shirt blue"}))
=COUNTIFS(ProductRange, "<>Shirt yellow")
=COUNTIFS(ProductRange, "<>" & A1)
where A1
contains "Shirt yellow".=COUNTIFS(SalesRange, ">" & 550)
=COUNTIFS(SalesRange, ">=" & 550)
=COUNTIFS(CountryRange, "")
=COUNTIFS(CountryRange, "<>")
=COUNTIFS(DateRange, ">" & StartDateCell, DateRange, "<" & EndDateCell)
=COUNTIFS(ProductRange, "Shirt*")
=COUNTIFS(ProductRange, "*" & "blue" & "*")
=COUNTIFS(ProductRange, "*" & "blue" & "*", MonthRange, "February")
*
) help with partial text matches.&
) to concatenate operators and cell references in criterions for dynamic formulas.Further Resources:
Download the example file from the video description for follow-along practice.
If you found this helpful, leave feedback and suggestions for more content!