Go Back

Excel COUNTA Function

The powerful Excel COUNTA Function stands for the count all. The function counts not only empty text, “ ”, text and numbers but also logical/error values. Look at the easy to follow COUNTA examples.



Example 1

How to count cells with text using Excel COUNTA Function in a range of cells.

  1.    Click C9
  2.    Type =COUNTA(C4:C8)
  3.    Press enter

NOTE: Cell C6 is blank

Figure 1. Example 1 of Excel COUNTA Function counting non-blank cell

Example 2

  1.    Select D9
  2.    Enter =COUNTA(D4:D8,"ipad","Android Tablets")

In the example below a user can combine the range and value arguments within the Excel COUNTA Function.

Figure 2. Example 2 combines range and values in the arguments


The Excel COUNTA Function counts non-blank cells in a range. The Excel COUNTA Function returns a numeric value representing non-blank cells. It is a worksheet function in the statistical category. Besides, it is inbuilt into Excel. In the three examples, we explore the use of Excel COUNTA Function.

Let’s look at example 2 of the COUNTA function. When we modify the first function to include the range (D4:D8) having 3 values (99,88,14) it then adds two more values “ipad” and “Android Tablets” and the error value (#DIV!) to make a total of 6.


  • When COUNTA detects a blank cell it will return (0)
  • Use no more than 255 arguments in the Excel COUNTA Function

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

require assistance on using countifs and counta forumula, unable to dervie.
Solved by D. J. in 25 mins
I'm still new to Excel, and I haven't taken any classes. This is what I have learned just from trial an error. I'm stuck with this, and I can't move forward until I figured this out, and need some assistance please. *I have figured out that If an employee is working 6hr shift and extended to 7 hrs the values change for the next cell to (Having an extra person, so its plus 1). I want it to go (Plus 1) on an 8 hr shift as well, but Im having difficulties. Can you assist if possible, let me know what you would need? =IF(AND($C$29<=13.5,$C$30<=13.5),COUNTA($B$31:$B$61)+-COUNTA(BZ31:BZ61),COUNTA($B30:$B61)+-COUNTA(BZ29:BZ61)+1*(AND($D$29>=7,$D$30>=7,+-COUNTA(BZ29:BZ61)+-(COUNTA($B30)*COUNTA($B29)*(AND($D$29<7)+-COUNTA($B30:$B53)*COUNTA(D29=8,(B29)+-(BZ29:BZ29)))))))
Solved by C. E. in 11 mins
I have a problem regarding to COUNTA in Google Sheets
Solved by V. D. in 29 mins

Leave a Comment