You can also try:

=COUNTA(FILTER(B:G,A:A="Smith"))

Answer from Lorena Gomez on Stack Overflow
🌐
Google Support
support.google.com › docs › answer › 3093991
COUNTA - Google Docs Editors Help
Returns the number of values in a dataset. Sample Usage COUNTA(A2:A100,B2:B100,4,26) COUNTA(1,2,3,4,5,C6:C20) Syntax COUNTA(value1, [value2, ...]) value1 - The first
🌐
W3Schools
w3schools.com › googlesheets › google_sheets_counta.php
Google Sheets COUNTA Function
GS Sort GS Sort Sheet GS Sort By ... The COUNTA function is a premade function in Google Sheets, which counts cells that has values, both letters and numbers....
Discussions

google sheets - COUNTIF OR COUNTA - Stack Overflow
How do i use COUNTIF or COUNTA with a condition to count how many none blanks based on criteria across columns. What i hope to achieve: COUNTA Col B, Col C, Col J and Col F only IF Col A Contains S... More on stackoverflow.com
🌐 stackoverflow.com
countif - COUNTA not working as I expect in new Google Sheets - Stack Overflow
I'm using the command =COUNTA(I31:I) to count all non-empty cells in the column. The cells in the column contain this line of code: =IF(ISNUMBER(D31), "X", "") The result is that the cells are eit... More on stackoverflow.com
🌐 stackoverflow.com
Why is my COUNTA function counting seemingly empty cells in Google Sheets?
I’m having trouble with the COUNTA function in Google Sheets. I’m using =COUNTA(K2:K) to count non-empty cells in a column. These cells contain a formula: =IF(ISNUMBER(F2), "Y", ""). The issue is COUNTA counts all cells, even those that look empty. When I remove the formula, COUNTA works ... More on community.latenode.com
🌐 community.latenode.com
0
0
April 23, 2025
Google sheet COUNTA with arrayformula - Stack Overflow
I am using below formula in cell B2, the formula works fine, but when I try to use the formula with arrayformula it gives incorrect result. =IF(ISBLANK(B2),"",COUNTA($B$2:B2)) Below is the More on stackoverflow.com
🌐 stackoverflow.com
🌐
Owox
owox.com › blog › articles › google sheets tips › how to use the count and counta functions in google sheets: a complete guide
Using COUNT and COUNTA Functions in Google Sheets in 2025
June 1, 2026 - COUNT helps you quickly tally numeric ... perfect for analyzing numerical data. COUNTA, on the other hand, counts all non-empty cells, including text and numbers, making it ideal for tracking any filled data....
🌐
Ablebits
ablebits.com › ablebits blog › google sheets tips › google sheets functions › count and counta functions in google sheets with formula examples
COUNT and COUNTA functions in Google Sheets with formula examples
May 5, 2023 - The quickest and simplest way would be to create a pivot table from the desired range: with the values you want to count as Rows and the COUNTA function as Values in it. If you're not familiar with pivot tables, feel free to read this blog post. ... How do you count how many times a particular figure appears in the sheet or in a column/selected range? ... It is COUNTIF that does that in Google Sheets.
🌐
LiveFlow
liveflow.com › product-guides › counta-function-in-google-sheets
COUNTA Function in Google Sheets: Explained | LiveFlow
The COUNTA function counts the number of all kinds of values, even when a specific value appears more than once in a data set. Even whitespace in a cell is considered a value and counted by the formula.
Find elsewhere
Top answer
1 of 2
3

See Also: Count rows with not empty value


Unfortunately, this is functions as designed from Google.
Although I'm not sure why it's divergent from the way that Excel calculates COUNTA.

According to the Google Spreadsheet Documentation on COUNTA:

COUNTA counts all values in a dataset, including those which appear more than once and text values (including zero-length strings and whitespace).

Meaning that the only way to "make [the cells] completely empty" is to delete the entire contents, formula and all. But fear not...

Some workarounds:

  1. Hypothetically, you should be able to do this with =COUNTIF(A3:A8,"<>"&""), but Google spreadsheets doesn't support the not equal to operator in the COUNTIF function according to these forums: 1, 2, 3

  2. A workaround is to create a truthy or falsy array based on the condition and use SUMPRODUCT to count the truthy values like this:

     =SUMPRODUCT((A3:A8<>"")*1)
    
  3. Another option you could pursue would be to write a custom function and add it to Drive.
    It's actually pretty easy to do so. Go to Tools > Script Editor and add the following script:

     /**
      * Works like COUNTA except does not include null strings
      *
      * @param {cellRange} myArray The value or range to consider when counting.
      * @return Returns the a count of the number of values in a dataset.
      * @customfunction
      */
     function CountNotBlank(myArray) {
       var output = 0;
       for (i = 0; i < myArray.length; i++) { 
         if (myArray[i] != "") {
           output += 1
         }
       }
       return output;
     }
    

    Then use like this:

     =CountNotBlank(I31:I)
    
2 of 2
1

I would try: =IF(ISNUMBER(D31), "X", iferror(1/0))

I am told that the iferror(1/0) returns nothing at all.

🌐
Latenode
community.latenode.com › other questions › google sheets
Why is my COUNTA function counting seemingly empty cells in Google Sheets? - Google Sheets - Latenode Official Community
April 23, 2025 - I’m having trouble with the COUNTA function in Google Sheets. I’m using =COUNTA(K2:K) to count non-empty cells in a column. These cells contain a formula: =IF(ISNUMBER(F2), "Y", ""). The issue is COUNTA counts all cells, even those that look empty. When I remove the formula, COUNTA works ...
🌐
Statology
statology.org › home › how to use counta if in google sheets
How to Use COUNTA IF in Google Sheets
December 5, 2023 - Often you may want to use the COUNTA function with an IF function in Google Sheets to count the number of cells that are not empty only if a cell in a corresponding column meets a certain requirement.
🌐
FormulasHQ
formulashq.com › home › blog › counta: google sheet formulas explained
CountA: Google Sheet Formulas Explained — FormulasHQ
January 29, 2024 - The Google Sheets COUNTA function is a powerful tool that allows users to count the number of cells in a range that are not empty. This function is particularly useful when dealing with large data sets where manual counting would be impractical ...
🌐
Facebook
facebook.com › groups › 623746728035666 › posts › 1112953329115001
How to use COUNTA formula with array formula in Google ...
Popular groups · Find communities for you · Over 1 billion people across the globe are using Facebook Groups to explore their favorite topics · Log in · Categories · Science & tech · Travel · Animals · Sports & fitness · Entertainment
🌐
Sheetgo
sheetgo.com › home › how to use the counta function in google sheets
How to use the COUNTA function in Google Sheets - Sheetgo
December 17, 2020 - The COUNTA function in Google Sheets is a simple and widely-used function for everyday spreadsheet work. It quickly gives you the total number of values within a specific range of cells. Whereas the COUNT function only counts cells containing numbers, the COUNTA function counts how many cells in the dataset contain any kind of data.
🌐
Google Sheets
sheets-pratique.com › en › functions › counta
Google Sheets Function: COUNTA
The COUNTA function returns the number of non-empty cells within a specified range of cells...
🌐
Alice Keeler
alicekeeler.com › home › google › counta in google sheets™
COUNTA in Google Sheets™ - Teacher Tech with Alice Keeler
October 15, 2024 - Let me explain to you what COUNTA does and how it is different than =COUNT. ... =COUNT(range) will count how many numbers are in the selected range. Notice in the sample sheet that there are 48 numbers in the grid of numbers and words.
🌐
Reddit
reddit.com › r/googlesheets › using counta with arrayformula
r/googlesheets on Reddit: Using COUNTA with ARRAYFORMULA
January 5, 2021 -

Trying to figure out the appropriate interaction between these two functions... What I'm looking to do is show a count of non-blank cells in a row from F:J if C is not blank and have it automatically copy down

Here's what I tried...

=ARRAYFORMULA(IF($C$6:$C)="","",COUNTA($F$6:$J)))

^ This seems to count everything in F6:J and copies that answer to all rows

=ARRAYFORMULA(IF($C$6:$C="","",COUNTA($F$6:$J$6)))

^Tried this and it returns the proper count on the row, but again duplicates that answer to all rows

🌐
Yagisanatode
yagisanatode.com › home › google sheets counta
Google Sheets COUNTA Archives - Yagisanatode
Next, move down to Values and select Add. Again, select Choice. If you are lucky, Google Sheets would have added a count of all the values in the range. If not select the Summarized by dropdown and choose COUNTA.
🌐
Sheetgo
sheetgo.com › home › how to use the dcounta formula in google sheets
How to use the DCOUNTA formula in Google Sheets - Sheetgo
April 7, 2017 - The DCOUNTA formula in Google Sheets counts the number of values in a table-like array or range that meet specific criteria. It is similar to an SQL database count query. The ‘D’ in DCOUNTA stands for ‘Database’, therefore this is a ...