COUNTIF Counts Blanks When It Should Not
COUNTIF returns a bigger number than the visible entries, because it counts cells that look blank but are not. Formulas that return empty text and stray spaces both fool the count.

TL;DR / Quick Fix
Quick fix: change the COUNTIF condition to count only non-empty visible entries, such as counting cells not equal to empty text. Then clean the range of stray spaces and formula blanks, and recount to confirm and spot-check the result by eye.
Follow these steps
- Understand what looks blank. A cell with a formula returning empty text looks blank but is not empty. COUNTIF counts it, which inflates the total.
- Count non-blank properly. Use a condition that excludes both truly empty cells and formula blanks. The right condition depends on your app, so test it on a small range first.
- Find the fake blanks. Select the range and look for cells with spaces or formulas. Those invisible contents are what the count caught.
- Clean stray spaces. Remove leading and trailing spaces from the data. A space makes a cell non-blank to every counting function.
- Fix formulas that return empty text. Change formulas to return a true blank or a clear marker instead of empty text. Clean source data counts correctly everywhere.
- Recount and compare with your eyes. Count a small section by eye and compare with the formula. Agreement on a sample means the fix worked.

What NOT to do
- Do not trust a count you have not spot-checked. One eye-counted sample catches inflated totals fast.
- Do not leave fake blanks in the data. Cleaning the source fixes the count and every other formula that reads the range.
- Do not use a fancier function to dodge cleaning. Clean data counts right with the simplest formula.
- Do not count a whole column blindly. Limit the range to the data, since stray content far below inflates whole-column counts.
Frequently asked questions
Why does COUNTIF count blank cells?
Because those cells are not truly blank: they hold spaces or formulas returning empty text, which COUNTIF counts.
How do I count only real entries?
Use a condition that excludes empty text and clean the range of stray spaces and formula blanks.
Should I just eyeball the count?
For a final check, yes. An eye count on a sample confirms the formula tells the truth.