What the video covers
Show three reliable formulas to get the count of cells containing only text in a selected range. Do not assume specific UI labels or versions.
Watch the video on YouTubeStep-by-step instructions
- Select a target range and output cell
Identify the column range that contains mixed data (example: A2:A100). Click an empty cell where you want the text-only count to appear. - Fast method — COUNTIF with wildcard
In the output cell enter: =COUNTIF(A2:A100, "*"). This counts cells that contain any text characters and ignores pure numbers and blanks. - Alternate — COUNTA minus COUNT
To count non-empty text entries by subtracting numeric values, enter: =COUNTA(A2:A100) – COUNT(A2:A100). This returns the number of non-empty cells that are not numeric (including text). - Precise test — ISTEXT with SUMPRODUCT
For a strict test that only counts cells where ISTEXT returns TRUE, use: =SUMPRODUCT(–(ISTEXT(A2:A100))). This is reliable when you need to verify cells are stored as text. - Validate results
Compare numbers from two different methods on the same range. If they differ, inspect individual cells with ISTEXT or check for formulas that return text or empty strings.
Watch the video
Play tutorial
Why it matters
Mixed columns with names, IDs, dates, and numbers can skew summaries. Counting only text entries lets you audit and report text-based records accurately.
Check your result
Compare results from two methods (COUNTIF and ISTEXT+SUMPRODUCT or COUNTA−COUNT) on the same range — they should match for true text-only counts.
Troubleshooting
If counts seem off: ensure the range excludes header rows; formulas treat blank cells differently (COUNTA counts blanks as non-empty only if they contain formulas that return ""); cells formatted as text may still hold numeric values—use ISTEXT to confirm true text.