The formula in G4 is:

TheCOUNTIF functioncounts the number of cells in a range that meet criteria.

MATCH supports approximate and exact matching, andwildcards(* ?)

Often, MATCH is combined with the…

Excel formula: Summary count with COUNTIF

Excel formula: Count cells equal to this or that

Excel formula: Count total matches in two ranges

Excel formula: Sum if one of many things

Excel COUNTIF function

Excel SUMPRODUCT function

Excel ISNUMBER function

Excel MATCH function