File and sharing · Short guide

Why does Excel count a cell that looks empty?

Braxorn · Last updated 2026-11-22 · English

A visually empty cell might contain a formula returning an empty string or a space. Counting populated records can therefore give a higher result than counting visible labels.

What to do

Inspect the formula bar. Use ISBLANK to test whether the cell is genuinely empty and LEN to measure text length. Decide whether a pending result should count before modifying the source.

Example and result check

Leave A2 empty, enter ="" in A3 and a single space in A4. LEN gives 0, 0 and 1, but ISBLANK is true only for A2. Test the intended count against all three cases before deleting formulas.

Check text cells for leading or trailing spaces

Related guide