Google Sheets Count Cells with Text: A Practical Guide
Master counting cells that contain text in Google Sheets. Learn ISTEXT, COUNTIF, REGEXMATCH, and related methods with practical examples and a clear step-by-step guide.
To count cells that contain text in Google Sheets, use the ISTEXT-based approach or a text-aware COUNTIF alternative. In practice, SUMPRODUCT(ISTEXT(A2:A100)) gives a reliable count of text cells, ignoring blanks and numeric values. This guide walks through several methods so you can pick the right one for your data. Examples follow.
What counts as text in Google Sheets
In Google Sheets, text refers to sequences of non-numeric characters that are stored as text data types. Numbers, dates, and logical values like TRUE/FALSE are not text, even if they appear as strings in the sheet. Blank cells are not text either. The ISTEXT function returns TRUE when a cell contains text and FALSE otherwise, including blank cells and numeric values. This distinction matters because counting text cells requires testing for text explicitly, not just for non-blank values. Understanding what qualifies as text helps you choose the right method for counting text in a range. According to How To Sheets, accurate results depend on the chosen method matching your data's characteristics. The practical upshot is: if your goal is to count only strings such as 'Hello' or '2020-Report', ISTEXT is a reliable first check, followed by corroborating methods if the data is diverse.
Core methods to count text in Sheets
There are several approaches, each with trade-offs. The simplest is ISTEXT paired with SUMPRODUCT to count all cells that contain text across a range. If you prefer a single-number result without a helper column, SUMPRODUCT(ISTEXT(A1:A100)) is often enough. Another option uses FILTER and COUNTA to create a text-only subset of the range, then count it. For very large sheets or dynamic datasets, REGEXMATCH provides a text-detection rule that can be combined with SUMPRODUCT for fast evaluation. The choice depends on your data structure, whether you need a dynamic array result, and how your locale handles array formulas. The How To Sheets analysis shows that adopting ISTEXT as the baseline yields consistently reliable counts across typical datasets.
Tools & Materials
- Google Sheets access(Open in a compatible browser (Chrome recommended))
- Sample dataset(Range like A1:A100 with mixed text, numbers, and blanks)
- Formula references(Keep a note of the formulas you plan to test)
- Documentation notebook(Record observations and results for future use)
Steps
Estimated time: 15-25 minutes
- 1
Open the Google Sheet
Navigate to the workbook that contains your data range. Confirm you have permission to edit or at least view the sheet. This step establishes the dataset you will test against and prevents accidental edits to key data.
Tip: Create a duplicate copy of the sheet if you’re experimenting with formulas. - 2
Identify the target range
Decide which cells you want to count for text content, such as A2:A100. Ensure the range excludes headers unless you want to include them in the count. Align the range with how your data is laid out.
Tip: Use absolute references (e.g., A$2:A$100) if you plan to copy formulas elsewhere. - 3
Enter ISTEXT + SUMPRODUCT formula
In a empty cell, enter =SUMPRODUCT(--ISTEXT(A2:A100)). This counts all cells that hold text, ignoring blanks and numeric values. Adjust A2:A100 to fit your data.
Tip: If you have helper columns, place the formula there to keep your data area clean. - 4
Test alternative: FILTER + COUNTA
In another cell, use =COUNTA(FILTER(A2:A100, ISTEXT(A2:A100))). This method creates a text-only subset and then counts entries. It’s helpful for dynamic ranges.
Tip: Check for errors if data includes non-text values that look like text (dates, numbers stored as text). - 5
Experiment with REGEXMATCH
Try =SUMPRODUCT(--REGEXMATCH(A2:A100, "[A-Za-z]")). This detects any cell containing letters and can serve as a text proxy when data varies in format.
Tip: Regex patterns may overcount if symbols count as text; validate on a small sample first. - 6
Cross-check with multiple methods
Compare results from ISTEXT, FILTER+COUNTA, and REGEXMATCH. Consistent results across methods increase confidence in your count.
Tip: Document discrepancies and re-check edge cases (blanks, formulas returning text). - 7
Apply across multiple ranges
If you need to count text across two or more ranges, use an array: =SUMPRODUCT(--ISTEXT({A2:A100; C2:C100})).
Tip: Ensure the ranges have similar lengths or use functions like IFERROR to handle mismatches. - 8
Handle text numbers distinctly
Remember that numbers stored as numbers are not text. If you need to include numeric-looking strings, test with ISTEXT or adjust your pattern.
Tip: Consider converting suspected text numbers with VALUE if appropriate for your workflow. - 9
Document your approach
Write a short note describing which method you used and why. This helps teammates understand the data and ensures reproducibility.
Tip: Include the exact formula and the data range in your note for quick reference. - 10
Validate results with a test dataset
Create a small test dataset containing text, numbers, and blanks. Run all methods to verify they align with your expectations before applying to larger sheets.
Tip: Keep the test dataset separate from your live data to avoid confusion. - 11
Finalize and reuse the technique
Save your preferred method as a template or a named range. Reuse it in future sheets to count text efficiently.
Tip: Share the template with colleagues to standardize counting across teams.
FAQ
What counts as text in Google Sheets?
Text refers to non-numeric characters stored as text. Numbers and blanks do not count as text. ISTEXT identifies text values, returning TRUE only for text entries.
Text in Google Sheets means characters stored as text, not numbers. Use ISTEXT to test each cell.
How can I count only text cells in a range?
Use =SUMPRODUCT(--ISTEXT(range)) to count text cells, or use =COUNTA(FILTER(range, ISTEXT(range))) for a dynamic subset.
Count text cells with ISTEXT plus SUMPRODUCT, or FILTER plus COUNTA for dynamic ranges.
Will ISTEXT count text numbers or dates?
ISTEXT returns TRUE only for actual text. Numbers and dates are not text unless entered as strings. Use it to differentiate textual data from numeric data.
ISTEXT flags true text entries; numbers and dates are not text unless they are strings.
Does a formula returning text count as text?
Yes. If a formula result is text (for example, =TEXT(…, "…")), ISTEXT will return TRUE for the resulting cell.
If the formula shows text, ISTEXT counts it as text.
Can I count text across multiple ranges at once?
Yes. Use array literals like =SUMPRODUCT(--ISTEXT({A1:A100; C1:C100})). This sums text entries from both ranges.
Count across multiple ranges by combining them in an array.
Which method is best for very large datasets?
ISTEXT + SUMPRODUCT is efficient and straightforward. For very large datasets, test performance with a sample before scaling up.
ISTEXT with SUMPRODUCT is typically the most scalable baseline.
Watch Video
The Essentials
- Use ISTEXT + SUMPRODUCT for a clear text-count baseline.
- COUNTA(FILTER(... ISTEXT(...))) offers a dynamic, readable alternative.
- REGEXMATCH provides flexibility when data formats vary.
- Document formulas and test across ranges to prevent errors.

