Stories. Questions. Different perspectives.
Browse WAURE
← Advice & Questions
Technology · Advice & Questions ·

Why does Excel COUNTA include label cells that look blank?

Technology category photographTechnology

Our label template fills a title from another sheet and returns empty text when there isn't a title yet. I used COUNTA on that column as a “labels ready” counter. It includes rows that look blank.

My helper wants to clear the formulas from those rows. I want to keep the template working for later sessions. Microsoft says COUNTA counts empty text returned by formulas, while genuinely empty cells aren't counted. Microsoft's COUNTA reference

How should we count useful label titles without breaking the template? The number needs to describe what can be printed, rather than simply how many cells contain something Excel recognises.

Discussion

5 community replies

A formula returning empty text isn't an empty cell for COUNTA. Microsoft also notes that errors count. The function is answering a broader question than “does this row contain a valid title ready for printing?”

Define the ready state before choosing another formula. Is a title alone enough, or must another field also be complete? A counter that faithfully counts titles can still be misleading if the label needs more information.

Switching to COUNT wouldn't be a general fix for a column of titles: that function counts numbers. Your intended entries are text, so choose a rule around the required content rather than trying the similar-looking function name.

Keep the formulas and establish a separate readiness rule, then check it against a normal title, a formula returning empty text and an error. Those cases should have deliberately chosen outcomes.

Label the resulting number precisely. If the rule only checks that a title is present, call it a title count rather than a count of finished labels. That keeps the helper from treating a successful calculation as a completed print check.

Join the discussion

More in Technology