Where the criteria_range1 is B5:B11 (locked as an absolute reference so that the formula can be copied down the table and criteria1 is pulled from column F. This will return a count of all matching buildings based on column B only.
To count inspections by building, we need to extend the formula by adding an additional range/criteria pair like this:
Here, criteria_range2 is C5:C11 (as an absolute reference) and criteria2 is "<>", which means "not blank" or "not empty". For the formula in F6, this translates to: count of entries where building is A and inspection is not blank.
In a similar way, to count approvals per building, we use this formula in H6:
Learn key Excel formulas and functions with concise, clear videos. Master absolute/relative addresses, dates, text, named ranges, and tools for troubleshooting. Each video comes with a practice worksheet to follow along. Start today - instant access, 100% guarantee.