You can also try:

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

Answer from Lorena Gomez on Stack Overflow
🌐
Reddit
reddit.com › r/exceltips › finally figured out the real difference between count and counta in excel 🤯
r/ExcelTips on Reddit: Finally figured out the real difference between COUNT and COUNTA in Excel 🤯
October 17, 2025 -

I’ve been using COUNT for years without realizing it quietly skips text cells — only counts numbers!

So if your dataset has words like “Yes” or “N/A”, you’ll need =COUNTA() instead, which counts all non-empty cells.

COUNT → counts only numeric cells

COUNTA → counts everything that’s not blank

It’s a tiny detail but super important if you’re summarizing survey data or attendance sheets.

I made a short 30-sec clip showing it in action here if anyone wants to see the difference visually 👇
🎥 https://www.youtube.com/shorts/pd_9ng_7EAQ

What’s another Excel formula you think people commonly misunderstand? I’m thinking of doing a mini-series on these small-but-powerful differences.

If you like bite-sized Excel tips, I’ve been collecting all of them here:

https://www.youtube.com/playlist?list=PL5w9hG_JDbyjTCBFAdRVobtQVZD1PvQRt

🌐
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 - As you can see, the main difference between the functions lies in the ability of COUNTA to process those values that Google Sheets stores as text. Both functions ignore completely empty cells.
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
google sheets - How to use counta function with two columns (or) - Web Applications Stack Exchange
I would like to use counta function to count rows that are not empty based on column A or B. In other words.. if either column A or B not empty, it should be counted. ... ROW(A:A) gives us "something" to count. By concatenating each row-cell of A:A with the corresponding row-cell of B:B, we form one string, which we can evaluate as one string and thus count as one string. ... Please see update to formula, swapping the first A:A for ROW(A:A). I updated your sheet... More on webapps.stackexchange.com
🌐 webapps.stackexchange.com
Google sheet formula- How do I get this to count correctly?
Hello everyone, below is a picture of a spread sheet that I need to keep a total of the items listed. This is a small portion of the actual spreadsheet that is for tracking purposes. The items are not the word book but anything with 2 letters or 2 letters and a number, generally after the ||. ... More on community.spiceworks.com
🌐 community.spiceworks.com
5
6
February 9, 2024
Why is this Google Sheets formula counting blank cells? - Web Applications Stack Exchange
I will start with an image of my test Google Sheet below: If you take a look at the above picture, this is a screenshot of a test sheet that is exhibiting the issue that I don't know how to resolve. Column A is using the formula =IF(E3<>"",COUNTA($E$3:E3),"") to count and number the values ... More on webapps.stackexchange.com
🌐 webapps.stackexchange.com
🌐
Google Support
support.google.com › docs › answer › 3093991
COUNTA - Google Docs Editors Help
Although COUNTA is specified as taking a maximum of 30 arguments, Google Sheets supports an arbitrary number of arguments for this function. COUNTA counts all values in a dataset, including those which appear more than once and text values (including zero-length strings and whitespace).
🌐
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 values in a selected range, making it an essential part of the Google Sheets count functions, perfect for analyzing numerical data. COUNTA, on the other hand, counts all non-empty cells, including text and ...
🌐
W3Schools
w3schools.com › googlesheets › google_sheets_counta.php
Google Sheets COUNTA Function
GS Sort GS Sort Sheet GS Sort By ... SUM SUMIF SUMIFS VLOOKUP XOR ... The COUNTA function is a premade function in Google Sheets, which counts cells that has values, both letters and numbers....
🌐
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 - 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
sheetshelp.com › sheets help › statistical › count function google sheets: syntax & count vs counta
COUNT Function Google Sheets: Syntax & COUNT vs COUNTA
December 27, 2025 - If you want to find the amount of text and number values while ignoring the blanks, consider the COUNTA function. Now let’s move on to dates. Remember, spreadsheets treat dates the same as numbers in a spreadsheet. ... The trick with dates is that they need to be valid to be considered a number. In the example above, Google Sheets adds 1 for each date in A3:A5 but it does not recognize Feb 20th in cell A2 as a valid date.
Find elsewhere
🌐
Statology
statology.org › home › count vs. counta in excel: what’s the difference?
COUNT vs. COUNTA in Excel: What's the Difference?
February 3, 2022 - The COUNT function counts the number of cells in a range that contain numbers. The COUNTA function counts the number of cells in a range that are not empty.
🌐
Better Analyst
betteranalyst.com › home › google sheets formulas › counta google sheets formula function
COUNTA Google Sheets Formula in Google Sheets - Better Analyst
Unlike the COUNT function, which only counts cells with numeric values, COUNTA includes all types of data. In simpler terms, COUNTA helps you quickly determine how many cells in a range contain any form of data.
🌐
mysynonyms
mysynonyms.com › difference-between-count-and-counta
Difference Between COUNT and COUNTA: A Complete Guide
May 19, 2026 - In contrast, COUNTA counts almost every type of non-empty cell, including text, numbers, symbols, logical values, and even error messages. Learning the difference between COUNT and COUNTA helps users avoid calculation mistakes, improve spreadsheet ...
🌐
Excel Insider
excelinsider.com › home › our blog › google sheets functions › how to count cells with values in google sheets (4 ways)
How to Count Cells with Values in Google Sheets (4 Ways) - Excel Insider
June 26, 2025 - If you’re working with a list of entries, like names, submissions, or dates, and want to count how many cells are filled (regardless of the type of data), the COUNTA function is your go-to function.
🌐
LiveFlow
liveflow.com › product-guides › dcounta-function-in-google-sheets-explained
DCOUNTA Function in Google Sheets: Explained | LiveFlow
The main difference between the ... that the DCOUNTA function counts the number of non-blank cells in a particular column of a database that meet specific criteria, while COUNTA counts the number of non-empty cells in a specified range without any conditions...
🌐
3Pie Analytics
3pieanalytics.com › excel-and-google-sheets-formulas-and-example › count-cells-that-are-not-blank-in-excel-or-google-sheets
count cells that are not blank in Excel and Google Sheets
To count the number of cells that are not blank, you can use =COUNTA(A2:A6) or =COUNTIF(A:A,"<>") formulas. Check the formulas below that suits your need. ... Check below for a detailed explanation with pictures and how to use formulas in Excel ...
Top answer
1 of 5
1

Your going to need a custom formula that can handle the various cases you’ve mentioned. A custom script would be ideal for this, but since we’re working within the constraints of Excel formulas, we might be able to use a combination of SUMPRODUCT and LEN - SUBSTITUTE to count the occurrences of each delimiter that separates the items, now this would only really work on the principle that the number of items is one more than the number of delimiters if the items are seperated.

So lets assume that the delimiter is a comma this is how I would do the formula: =SUMPRODUCT((LEN(A1:A5)-LEN(SUBSTITUTE(A1:A5, “,”, “”)))/LEN(“,”)+1)

So this calculated the number of commas in each cell and adds 1 because there’s always one more item than there are delimiters but this means your data must be separated by delimiters. And in your case items are separated by a comma and a space, so we need to adjust the formula: =SUMPRODUCT((LEN(A1:A5)-LEN(SUBSTITUTE(A1:A5, ", “, “”)))/LEN(”, ")+1)

If your items within the cells are not consistently separated by a specific delimiter, you would need a more complex formula or a script to accurately count the items.

2 of 5
6

Hello everyone, below is a picture of a spread sheet that I need to keep a total of the items listed. This is a small portion of the actual spreadsheet that is for tracking purposes. The items are not the word book but anything with 2 letters or 2 letters and a number, generally after the ||.

The book formula worked well because I counted every cell w/the word book as 1 item. The issue I run into and need to find a fix for is anything additional in the cell, such as A2 it lists 4 items not just 1 as the other cells show. Each ‘item’ is either S#, or DP, DP# or AP. Each item will always be either a letter and a number (A# or two letters and a number SP4 or a word or 3 letters AAA ), which is why i started to just count the word book, as i knew the word book would always be included in the cells no matter what the item was. Now i need to account for more than one item in a cell automatically which is the issue I am having trouble figuring out.

I need to count each item but have a way for the formula to include anything ‘extra’ in the cell as it shows in A2.

The original formula was ="Total of Books " &COUNTIF(A1:A5, “book”) which worked well until i realized I need to be inclusive of other items listed on the same sell so those are also counted.

I have used a few formulas shown below but those don’t work either.

="Total of Books " &COUNTIF(A1:A5, “book”) +countif(A1:A5, “s2”)+countif(A1:A5, “ap)”)

="Total of Books " &arrayformula (sum(COUNTIF(A1:A5, “book”) +countif(A1:A5, “s2”)+countif(A1:A5, “ap)”)))

The forumula below subtracts 1 from the total which doesn’t help if for whatever reason that time there are no extra items in a cell (if column just had 1 item)

="Total of Books " &arrayformula (sum(COUNTIF(A1:A5, “book”) +countif(A1:A5, “s2”)+countif(A1:A5, “ap)”),-1))

Unfortunately I cannot just have a2 has 4 separate instances which is why I am trying to figure out how to have the formula include any 'extras w/in the cell.

The total number of books based off the picture should be 7. One item for a1,a3, and a4 and a2 has 4 items.

Any help is appreciated.

🌐
InfoInspired
infoinspired.com › home › google docs › spreadsheet
Expand Count Results in Google Sheets
October 2, 2024 - You can replace COUNTA with COUNT if you want to count numeric values, such as numbers, dates, or times. This is the easiest way to expand count results in Google Sheets.