- Can COUNTIFS compare values in two different columns (like On Hand vs. Reorder Point)?
- No, COUNTIFS only compares each range against a fixed criterion. To count rows where one column is less than another, use SUMPRODUCT instead: =SUMPRODUCT((C2:C9<D2:D9)*1).
- How do I use OR logic instead of AND with COUNTIFS?
- COUNTIFS requires all criteria to be true (AND logic). For OR logic, use separate COUNTIF functions: =COUNTIF(B:B,"A")+COUNTIF(B:B,"B") counts items in Warehouse A or B. Alternatively, use SUMPRODUCT: =SUMPRODUCT(((B2:B9="A")+(B2:B9="B"))*1).
- What happens if my criteria_range and criteria are mismatched in size?
- If ranges are different sizes, COUNTIFS may return #VALUE! or unpredictable results. Always use ranges of equal size (e.g., B2:B9 with a single criterion for all 8 rows). Type mismatches usually trigger #VALUE! errors.
- Can I use date ranges as criteria in COUNTIFS?
- Yes, compare dates using operators and the DATE function: =COUNTIFS(D2:D9,">="&DATE(2025,1,1),D2:D9,"<"&DATE(2025,12,31)) counts entries within a specific year. Ensure your range contains actual date values, not text.