The COUNTBLANK function is used to count blank cells in Excel. Whereas, the COUNTA function is used to count the cells that are not blank.