COUNTIFS is the single, versatile function you need in Microsoft Excel to count data based on any combination of criteria.