How to Use the COUNTA Function in Google Sheets [Full Guide]
Last Updated :
11 Apr, 2025
Need to count cells with data in Google Sheets? The COUNTA function is your go-to tool for efficiently tracking non-empty cells. Whether you’re managing a list of product names, analyzing sales data, or reviewing survey responses, this function ensures you account for every piece of information. Unlike the COUNT function, which only tallies numerical data, COUNTA recognizes all data types, including text and dates.
In this guide, we’ll explore the syntax of the COUNTA function, provide practical examples, and share tips to help you use it effectively in your data analysis workflows.
What Is the COUNTA Function in Google Sheets?
The COUNTA formula counts the number of non-empty cells within a specified range. It doesn’t matter what type of data is inside — text, numbers, boolean values, or formulas — as long as it’s not blank, COUNTA will count it.
How It Works
- Range Selection: The function evaluates each cell in the given range.
- Non-Empty Criteria: Any cell that contains data—whether it's a number, text, or formula—is counted.
- Empty Cells Ignored: Completely blank cells are excluded from the count.
For example, if a range has 10 cells and 7 of them contain data, COUNTA will return 7.
COUNTA Function Syntax
Here is the Google Sheets COUNTA function formula:
=COUNTA(value1, [value2, ...])
Parameters
- value1 – Required. This can be a single cell, a range of cells, or direct values.
- value2, ... – Optional. Additional values or ranges to include in the count.
Example 1: Count Non-Empty Cells in a Column
To use COUNTA formula to count non-empty cells in Google Sheet follow the steps given below:
Step 1: Open Google Sheets and Select the Cell for the Result
Choose the cell where you want the count to appear. For example, C2.
Select a Cell Step 2: Enter the Formula
Type the COUNTA formula in the selected cell:
=COUNTA(A2:A10)
Here, column A contains words (e.g., product names).
Enter the Formula Step 3: Press Enter
Hit Enter to calculate the result. The formula will count all non-empty cells in the range A1:A10, including the cells with words.
Press Enter to See Result Example 2: COUNTA Function with Numbers
Now we will try the COUNTA function with the numbers in Google Sheets:
Step 1: Select the Cell for the Result
Choose the cell where you want the count to appear. For example, C2.
Select the CellStep 2: Enter the Formula
Type the COUNTA formula in the selected cell:
=COUNTA(B2:B10)
Here, column B contains numbers (e.g., sales figures).
Enter the Formula Step 3: Press Enter
Hit Enter to calculate the result. The formula will count all non-empty cells in the range B2:B10, including the cells with numbers.
Press Enter Example 3: COUNTA Function with Mixed Data Types
The COUNTA function can count any non-empty cell — including text, numbers, booleans like TRUE/FALSE, or symbols. Here's how to use it:
Step 1: Open Google Sheets
Launch your Google Sheets document or open a new sheet where your data is stored.
Step 2: Enter Mixed Data in a Column
In Column B (for example), enter a variety of data such as:
- B2: Yes
- B3: 15
- B4: FALSE
- B5: Pending
- B6: *
- B7 to B12: leave some cells empty or with only spaces
Enter Mixed Data in a ColumnStep 3: Select a Cell for the Result
Click on the cell where you want the result of the COUNTA function to appear (e.g., C2).
Select a Cell for the ResultStep 4: Enter the COUNTA Formula
Type the following formula into the selected cell:
=COUNTA(B2:B8)
Enter the COUNTA FormulaStep 5: Press Enter
After entering the formula, press Enter. Google Sheets will count the number of non-empty cells in the range B2 to B12.
Press EnterStep 6: Review the Result
The formula will return the count of non-empty cells — including:
- Text like "Yes" or "Pending"
- Numbers like 15
- Boolean values like FALSE
- Symbols like *
It will not count:
- Cells that are truly blank
- Cells that only contain invisible characters or spaces
Example 4: COUNTA Function with Non-Empty Cells Across Multiple Ranges
If your data is spread across different columns or rows, the COUNTA function can still help you count non-empty entries from multiple areas in one go.
Step 1: Open Google Sheets
Launch your Google Sheets document or start a new one.
Step 2: Enter Data in Multiple Ranges
Fill in data like this:
Enter Data in Multiple Ranges
Step 3: Select a Cell for the Result
Click on the cell where you want the COUNTA result to appear, e.g., D6.
Select a Cell for the Result
Step 4: Enter the COUNTA Formula
Type this formula:
=COUNTA(A2:A5, C2:C5)
Enter the COUNTA FormulaStep 5: Press Enter
Hit Enter, and the function will return the total count of non-empty cells across both ranges — Column A (A2:A5) and Column C (C2:C5).
Press EnterUse Cases of Count Non-Empty Cells Across Multiple Ranges Using COUNTA:
- Tracking attendance across different teams
- Combining form submissions across sections
- Counting completed vs. in-progress tasks across multiple columns
Difference Between COUNT and COUNTA Function
Function | What It Counts | Excludes |
---|
COUNTA | Non-empty cells including text, numbers, dates, and formulas. | Blank cells, but counts formulas (even if errors). |
COUNT | Only numeric values and dates. | Text, blank cells, and errors. |
Common Issues and Troubleshooting with the COUNTA Function
Issue | Cause | Solution |
---|
COUNTA not counting empty cells with formulas | COUNTA counts cells with formulas, even if they return an empty result or an error. | Ensure cells do not have formulas that return empty values or errors. Use IFERROR() to handle errors. |
COUNTA counts error values (e.g., #DIV/0!) | COUNTA counts cells with error values. | Use IFERROR() or other error-handling formulas to prevent errors from being counted. |
COUNTA counting hidden cells | COUNTA counts hidden rows or columns. | Apply filters to exclude hidden cells or use SUBTOTAL or other functions that don't count hidden cells. |
COUNTA counting numbers formatted as text | COUNTA treats numbers stored as text as non-empty. | Convert numbers stored as text into numbers by using VALUE() or manually correcting the format. |
Inconsistent range selection | Incorrect range selection might lead to counting unintended cells. | Double-check the selected range and ensure it includes the correct cells. |
Conclusion
The COUNTA function in Google Sheets is a simple yet powerful way to keep track of data completeness. Whether you're managing feedback forms, tracking inventory notes, or analyzing attendance, knowing how to count non-empty cells accurately gives you a true picture of your data.
Use COUNTA to power your dashboards, form responses, and daily reports — it’s one of the most essential tools in Google Sheets.
Similar Reads
How to use the COUNTIF Function in Google Sheets
The COUNTIF function in Google Sheets is an essential tool for users who need to perform conditional counting within their spreadsheets. Whether you are organizing data, analyzing trends, or tracking performance, the COUNTIF formula allows you to count cells based on criteria that you set. This make
4 min read
How to Use the SUM Function in Google Sheets â A Complete Guide
Google Sheets makes it easy to add cells in Google Sheets across cells with the SUM function. Whether you're working with a simple list of values or complex data sets, this function streamlines calculations for everything from budgeting to analyzing trends. This article will show you how to use the
6 min read
How to Use the STDEV Function in Google Sheets
When analyzing data in Google Sheets, understanding how your data values are spread can provide critical insights, particularly for financial, academic, or business-related tasks. The STDEV function in Google Sheets allows you to calculate the standard deviation, a measure of how dispersed your data
5 min read
How to Use RIGHT function in Google Sheets
Text manipulation can often feel tedious, especially when working with extensive datasets, but functions like the RIGHT function in Google Sheets offer a simple way to extract specific characters from the end of text strings. Whether you're cleaning up information, preparing reports, or extracting e
7 min read
How to Filter in Google Sheets : Complete Guide
How to Add Filters in Google Sheets : Quick StepsOpen Google Sheets>> Select your data range.Go to the Data menu >>Select Create a filterClick the filter icon in any column to sort or filter your data.If you work with large datasets in Google Sheets, using filters is a must to easily man
14 min read
Google Sheets IF Function: Ultimate Guide
The IF function in Google Sheets is one of the most versatile tools for logical testing and decision-making. Whether youâre working with numbers, text, or dates, this function allows you to evaluate conditions and define custom outputs based on whether those conditions are true or false. From simple
12 min read
Google Sheets MODE Function: Find the Most Frequent Value
Understanding patterns in data is a crucial step in any analysis, and the MODE function in Google Sheets is a tool that makes this task simple and efficient. Discover how the MODE function in Google Sheets simplifies data analysis by finding the most frequently occurring values in seconds. This feat
6 min read
Google Sheets NOT Function: A Complete Guide with Examples
The NOT function in Google Sheets is a powerful logical tool used to reverse the result of a given condition. By inverting TRUE to FALSE and vice versa, the NOT function is essential for building more complex formulas and logical expressions. It helps refine your calculations, making it easier to cr
5 min read
COUNT Function in Google Sheets: Explained
The COUNT function in Google Sheets is an essential tool for anyone working with data. It helps you quickly tally the number of numeric values in a given range, making data analysis much more efficient. Whether you're tracking sales figures, analyzing survey data, or compiling inventory lists, the C
5 min read
How to Use the UNIQUE Function in Excel: Step by Step Guide
Do you struggle with manually removing duplicates in Excel? The UNIQUE function is here to make your life easier! In this article, youâll learn how to quickly extract unique values from a list or range using the Excel UNIQUE function. Letâs get into the step-by-step process, formula examples, and ev
5 min read