There are two ways to fix this cause of the #SPILL! error. First, select the entire spill range (or at least the cell or ...
In most counting scenarios in Excel, COUNTBLANK reliably counts blank cells, and COUNTA reliably counts populated cells.