How to use the COUNTIF and COUNTIFS formulas. COUNTIF formula counts how many cells from one column respect a pre-defined condition. COUNTIFS formula counts how many cells from one column respect multiple pre-defined conditions OR multiple columns respect one pre-defined condition.