- Can COUNTIF count cells across multiple separate ranges at once?
- No, COUNTIF accepts only one range argument. To count matches across multiple ranges, either use COUNTIFS if they're contiguous, or combine multiple COUNTIF formulas with addition: =COUNTIF(A1:A10,"Sales")+COUNTIF(C1:C10,"Sales").
- How do I count cells that don't match a criterion?
- Use the not-equal operator: =COUNTIF(range,"<>value"). For example, =COUNTIF(F2:F9,"<>Inactive") counts all cells not equal to 'Inactive', returning 7 for the active employees in our dataset.
- What's the difference between COUNTIF and COUNTIFS?
- COUNTIF handles one range with one criterion. COUNTIFS handles multiple ranges paired with multiple criteria, allowing complex tallies—for example, =COUNTIFS(C2:C9,"Sales",E2:E9,">80000") counts Sales employees earning over $80,000.
- Does COUNTIF work with dates?
- Yes. Use comparison operators: =COUNTIF(range,">="&DATE(2022,1,1)) or =COUNTIF(hire_date_range,">"&TODAY()-365) for dates after a specific date or within the past year. Dates work with <, >, =, <=, >= operators.