Count blank cells in Excel and Google Sheets

=COUNTBLANK(A2:A6)

=COUNTIF(A2:A6,"")

A2:A6 = Range

Check below for a detailed explanation with pictures and how to use formulas in Excel and Google Sheets.