ACOUNTIFS function

ACOUNTIFS counts the cells in the chosen column(s) that match the extended conditions or criteria.

ACOUNTIFS Syntax

ACOUNTIFS (nSortedCrits, RangeArray, ReturnCol, CriteriaColumn1, Criteria1,
CriteriaColumn2, Criteria2, …, ["#OR#", nSortedCrits,] CriteriaColumnx, Criteriax, …)

ACOUNTIFS() should always be used rather than COUNTA(FILTER.IFS()) because COUNTA counts a return of zero as 1 but ACOUNTIFS does not.

See FILTER.IFS for definitions of the parameters for ACOUNTIFS

The RangeArray may optionally contain column labels in the first row, in which case at least one of the criteria columns or return column should be identified using a label. If you only use column numbers then the RangeArray should NOT include labels

If nSortedCrits is NOT equal to zero the RangeArray must be sorted on the criteria columns in the DataRange.

If ReturnCol is zero then a row of counts will be spilled for each column in RangeArray. This is an efficient method of counting multiple columns for a common set of criteria.