Skip to content
-
Subscribe to our newsletter & never miss our best posts. Subscribe Now!
  • https://www.facebook.com/
  • https://twitter.com/
  • https://t.me/
  • https://www.instagram.com/
  • https://youtube.com/
https://pctechmag.co.uk/ PC Tech Mag

Tech news, gadget reviews, tips, and digital trends — PC Tech Mag keeps you informed on everything technology.

https://pctechmag.co.uk/ PC Tech Mag

Tech news, gadget reviews, tips, and digital trends — PC Tech Mag keeps you informed on everything technology.

  • Home
  • About us
  • Contact us
  • Tech

About This Site

PC Tech Mag is an online tech magazine with PC hardware and gaming guides, Windows tips, software explainers and gadget coverage.

Recent Posts

  • How to Find Duplicates in Google Sheets: 5 Easy Methods
  • How to Add Speaker Notes in PowerPoint: A Step-by-Step Guide
  • Lighter Linux: The Best Lightweight Linux Distros for Old and Slow PCs
  • Ubuntu vs Mint: Which Linux Distro Should You Choose in 2026?
  • How Do I Send a GIF in a Text Message? A Complete Guide for iPhone and Android

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Find Us

Contact: farmanali5starseo@gmail.com

  • Home
  • About us
  • Contact us
  • Tech
Subscribe
Close

Search

How to Count Characters in an Excel Cell (LEN Function)
Software & Apps

Excel Count Cells With Text: 3 Easy Ways (COUNTIF, COUNTA & More)

By admin
December 2, 2026 6 Min Read
0

To count cells with text in Excel, use the formula =COUNTIF(A2:A20, “*”), replacing A2:A20 with your range. The asterisk is a wildcard that matches any text, so Excel counts every cell in the range that contains text and ignores numbers, blank cells, and errors. If you want to count all non-empty cells, including numbers, use =COUNTA(A2:A20) instead. Both formulas update automatically when your data changes.

Counting text cells is a common task when you are checking a list of names, products, survey answers, or status labels. You might want to know how many people answered a question, how many orders have a status, or how many rows in a column actually contain a label. Excel does not have a single function called COUNTTEXT, but COUNTIF with a wildcard does the job, and COUNTA and SUMPRODUCT cover the other cases you are likely to meet. This guide explains each method with examples you can copy, so you can count text in any column in seconds.

The 3 Main Ways to Count Cells With Text at a Glance

MethodFormulaWhat it countsBest for
COUNTIF with wildcard=COUNTIF(A2:A20, “*”)Cells with any textMost text counts
COUNTA=COUNTA(A2:A20)All non-empty cellsText plus numbers
SUMPRODUCT=SUMPRODUCT(–ISTEXT(A2:A20))Cells with text onlyComplex or filtered ranges

Start with COUNTIF. It is the simplest and most flexible method, and it is the one most Excel users reach for first. Use COUNTA when you do not mind counting numbers as well, and use SUMPRODUCT when you need a more precise test or when you are working with a range that COUNTIF handles badly.

1. Count Cells With Text Using COUNTIF

COUNTIF counts cells that meet a condition you give it. To count text, the condition is an asterisk in quotes: “*”. In Excel, the asterisk is a wildcard that stands for any number of characters, including a single character. The formula below counts every cell in A2:A20 that contains at least one text character.

=COUNTIF(A2:A20, “*”)

Type the formula in an empty cell, replace A2:A20 with your range, and press Enter. Excel will count labels, names, and words, but it will not count numbers, dates, blank cells, or cells that contain only a space. If your range includes a heading in row 1, start the range at row 2 so the heading is not counted by mistake.

Count cells with specific text

  • Cells that say Yes: =COUNTIF(A2:A20, “Yes”)
  • Cells that contain the word Apple anywhere: =COUNTIF(A2:A20, “*Apple*”)
  • Cells that start with S: =COUNTIF(A2:A20, “S*”)
  • Cells that are not blank and not numbers: combine COUNTIF with COUNTA, as explained below.

COUNTIF is not case-sensitive, so “Yes”, “YES”, and “yes” are all counted by the same formula. If you need to count text in a list you have already filtered, the Excel FILTER function can help you build that filtered list first, then count the text in it.

2. Count All Non-Empty Cells With COUNTA

COUNTA counts every cell in a range that is not empty, whether it contains text, a number, a date, or a formula result. The formula is simple:

=COUNTA(A2:A20)

COUNTA is useful when you want to know how many entries a column has in total, regardless of type. It is not the right choice if your column mixes text and numbers and you only want the text, because it will count both. A common trick is to use COUNTA together with COUNT, which counts only numbers: COUNTA minus COUNT gives you the number of text cells, as long as there are no error values in the range. For example, if COUNTA returns 18 and COUNT returns 6, then 12 cells contain text.

Be careful with formulas that return an empty string, such as =IF(A2=””, “”, A2). COUNTA counts those cells as non-empty, even though they look blank. COUNTIF with “*” does not count them in the same way, because an empty string has no characters to match, so it is usually the safer choice for text.

3. Count Text Cells With SUMPRODUCT and ISTEXT

For a precise test of whether a cell contains text, use ISTEXT inside SUMPRODUCT. ISTEXT returns TRUE for text and FALSE for anything else, and SUMPRODUCT adds up the TRUE values as 1s:

=SUMPRODUCT(–ISTEXT(A2:A20))

This method is useful when COUNTIF gives a surprising result, for example, when a range contains numbers stored as text or formulas that return text. ISTEXT tests the actual type of each value, rather than matching a pattern, so it is more exact. It also works in older versions of Excel that do not have newer dynamic array functions. If you are also working out how long your text entries are, see our guide on how to count characters in an Excel cell.

How to Count Cells With Text and Another Condition

Often you want to count text only when another condition is true — for example, orders with the status Shipped in the North region. Use COUNTIFS, with an S, for two or more conditions. The pattern is =COUNTIFS(range1, criteria1, range2, criteria2). To count cells in column B that contain text where column A says North, use:

=COUNTIFS(A2:A20, “North”, B2:B20, “*”)

You can add more pairs of ranges and criteria as needed. COUNTIFS is case-insensitive, like COUNTIF, and it works with wildcards in the same way. It is a good choice for reports and dashboards, where a single total hides the breakdown you need.

Count text cells, excluding blank-looking cells

Cells that contain only spaces look blank but are not empty, and COUNTIF with “*” will count a cell that contains a single space as text, because a space is a character. To avoid that, clean your data first with TRIM, which removes extra spaces, or use a helper column with =TRIM(A2) and count the text in the helper column instead. This is a common cause of counts that are one or two higher than expected.

Common Problems When Counting Cells With Text

ProblemLikely causeFix
Count is 0Range is wrong, or text has leading spacesCheck the range and use TRIM
Count is too highHeading row included, or space-only cells countedStart the range below the heading
Numbers are countedUsed COUNTA instead of COUNTIFUse COUNTIF with “*”
Formula returns an errorMissing quotes around the wildcardUse “*” with quotes
Count does not updateCalculation set to ManualFormulas tab > Calculation Options > Automatic

Another common issue is numbers stored as text. A cell that looks like 123 but is stored as text will be counted by COUNTIF with “*”, because Excel treats it as text. If that is not what you want, convert those cells to numbers first by selecting them, clicking the warning icon, and choosing Convert to Number.

COUNTIF vs. COUNTA: Which Should You Use?

Use COUNTIF with “*” when you want only text. Use COUNTA when you want every non-empty cell, including numbers and dates. Use COUNT when you want only numbers. If you are not sure which one fits, ask yourself what you would count by hand: if you would skip the numbers, use COUNTIF; if you would include them, use COUNTA. For most text-counting tasks, COUNTIF is the answer, and the other two are useful checks. If you use checkboxes to track tasks in a spreadsheet, our guide on how to add a checkbox in Excel shows another way to count completed items.

Frequently Asked Questions

How do I count cells with text in Excel?

Use =COUNTIF(A2:A20, “*”) to count cells that contain any text. The asterisk is a wildcard that matches any text, and the formula ignores numbers and blank cells.

What is the difference between COUNT and COUNTA?

COUNT counts only cells with numbers. COUNTA counts all non-empty cells, including text, numbers, and dates. To count only text, use COUNTIF with “*”.

How do I count cells with specific text?

Use =COUNTIF(A2:A20, “Yes”) for an exact match, or =COUNTIF(A2:A20, “*Apple*”) to count cells that contain Apple anywhere in the text.

How do I count text cells but not blank cells?

COUNTIF with “*” already ignores blank cells. If your data has cells that look blank but contain spaces, clean them with TRIM first, then count again.

Can I count text in multiple columns?

Yes. Add the results together, for example =COUNTIF(A2:A20, “*”) + COUNTIF(B2:B20, “*”), or use COUNTIFS if the columns need to meet conditions together.

Conclusion

Counting cells with text in Excel comes down to one formula: =COUNTIF(range, “*”). It counts labels, names, and words, and it ignores numbers and blanks. Reach for COUNTA when you want every non-empty cell, SUMPRODUCT with ISTEXT when you need an exact type test, and COUNTIFS when you need to count text that also meets another condition. With those four formulas, you can count text in any column, however your data is arranged.

Author

admin

Follow Me
Other Articles
Several iPhone models lined up side by side on a table
Previous

How Old Is My Phone? How to Check Your Phone’s Age (iPhone & Android)

Two computer screens showing green spreadsheet grids with an arrow between them, representing working with Excel spreadsheets
Next

How to Make a Bar Graph in Google Sheets: Step-by-Step Guide

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

About This Site

PC Tech Mag is an online tech magazine with PC hardware and gaming guides, Windows tips, software explainers and gadget coverage.

Search

Recent Posts

  • How to Find Duplicates in Google Sheets: 5 Easy Methods
  • How to Add Speaker Notes in PowerPoint: A Step-by-Step Guide
  • Lighter Linux: The Best Lightweight Linux Distros for Old and Slow PCs
  • Ubuntu vs Mint: Which Linux Distro Should You Choose in 2026?
  • How Do I Send a GIF in a Text Message? A Complete Guide for iPhone and Android

Find Us

Contact: farmanali5starseo@gmail.com

About This Site

PC Tech Mag is an online tech magazine with PC hardware and gaming guides, Windows tips, software explainers and gadget coverage.

Recent Posts

  • How to Find Duplicates in Google Sheets: 5 Easy Methods
  • How to Add Speaker Notes in PowerPoint: A Step-by-Step Guide
  • Lighter Linux: The Best Lightweight Linux Distros for Old and Slow PCs
  • Ubuntu vs Mint: Which Linux Distro Should You Choose in 2026?
  • How Do I Send a GIF in a Text Message? A Complete Guide for iPhone and Android

Archives

  • December 2026 (15)
  • November 2026 (192)
  • October 2026 (85)

Find Us

Contact: farmanali5starseo@gmail.com

Copyright 2026 — PC Tech Mag. All rights reserved. Blogsy WordPress Theme