COUNTA examines every cell in the range and adds one to the total for every cell that is not truly empty. A cell is not empty if it contains text, a number, a date, an error value, a logical value (TRUE or FALSE), or a formula that evaluates to any of those. Crucially, COUNTA also counts cells containing a formula that returns an empty string "". From COUNTA's perspective, a cell with a formula is not empty even if the visible output is nothing. This is usually fine but occasionally produces a higher count than you expect when your range contains IF formulas with "" in their false branch. To count only cells with visible content and exclude formula-returned empty strings, subtract a COUNTIF with empty-string criteria: =COUNTA(range)-COUNTIF(range,""). The behaviour difference between COUNTA and the narrower
COUNT function is worth knowing — COUNT counts only numeric cells, so if your column mixes text and numbers, COUNT will understate and COUNTA will be accurate. The opposite direction is covered by the
count blank cells formula using COUNTBLANK.