Get help

Help center

Guides and answers

Contact support

Write to our team

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Finance

Turn manual finance work into reports that update themselves.

What Finance teams automate

  • Track payables and receivables
  • Build cash flow statements
  • Compare budget against actuals

Inventory and manufacturing

See stock levels and automate ordering.

What inventory and manufacturing teams automate

  • Track inventory across multiple sites
  • Connect sales, purchasing, and warehouse data
  • Link a barcode scanner to your sheet

HR

Run recruitment, attendance, and OKR tracking from your sheets.

What HR teams automate

  • Track recruitment and onboarding
  • Record team OKRs and results
  • Track check-ins, check-outs, and leave

Project management

Assign tasks and track hours without manual updates.

What project teams automate

  • Assign tasks and track status changes
  • Estimate effort and log hours worked
  • Track milestones across projects

Sales and CRM

Track leads and sales performance with automated reports.

What sales teams automate

  • Track and convert leads
  • Set sales goals and track team metrics
  • Monitor sales KPIs on dashboards

Education

Automate attendance, grades, and school purchasing.

What schools automate

  • Track attendance and notify parents
  • Record and compare class grades
  • Track inventory lent to students and staff

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Sign in to

Workflows

Build processes with your team

Automations

Connect files and automate tasks

One system, four parts

AI agents

Virtual Employees that work 24/7

Automations

Connect files and automate tasks

Workflows

Build processes with your team

Data Space

Trusted data sharing and control

Solutions by department

Finance

Reports, budgets, and reconciliations

Inventory and manufacturing

Stock, orders, and production in one view

HR

Timesheets, attendance, and reviews

Project management

Status and workload across projects

Sales and CRM

Leads and deals kept up to date

Education

Student records and school data

Find a use case

By department

How each team uses Sheetgo

By industry

How each industry uses Sheetgo

By company size

Small, medium-sized, or large

Get started

Templates

Ready-made workflows to start from

Learn

Blog

Guides and product news

Customer stories

How teams like yours use Sheetgo

Help center

Guides and answers

Why Sheetgo

Compare

How Sheetgo compares with other tools

Security

How we protect your data

Trust center

Our compliance details

Help center

Guides and answers

Contact support

Write to our team

Workflows

Build processes with your team

Automations

Connect files and automate tasks

How to use the COUNTA function in Google Sheets

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. That includes numerical values, text (including white space and zero-length strings), logical expressions, error messages, dates and formulas.

Repeated values are also counted. Blank or empty cells are excluded.

39

Automate data transfers between spreadsheets

Find out how

Syntax

=COUNTA(value1, [value2, …])
  • value1 – the value or range of cell(s) to count within.
  • value2, value3 … – (optional, up to 30) additional values to also be included in the count.

The value arguments can be:

  • A value
  • A cell reference
  • A range of cells
  • A named range
How to use COUNTA function

I will show the function in action with a few examples:

counta-function-google-sheets-1

You can see that the input parameters can take many forms: a number, text within double quotes, and a reference to a range of cells The most basic form of the function uses a range as an input with the formula =CountA(B2:B9).

No matter what kind of combination you use for the input parameters, the COUNTA function does its job of counting the values. In all of these cases from row 2 through to 7, the function returned the result 8, as there are 8 different values in the third column (including the “Failed” ones). Therefore, you can see that the function counts both numbers and text values.

I included two column ranges in the case in row 8, hence the result was 16. But in the final example, you will see that the output returned is 3, while the data set consists of values from 4 cells: A9, A10, B9 and B10. This difference is because the COUNTA function doesn’t count blank values

COUNTA function also counts other types of data:

counta-function-google-sheets-2

In the example above, I entered various arbitrary values like a date, currency, percentage, decimal, and general text and even special characters. I also validated for blank values on the second column, using the ISBLANK function. So, all the values in rows 2 through to 9 (barring row 8) are non-blank values. Not surprisingly, the COUNTA function in column C counted all the non-blank values, and gives a total count of 7.

COUNTA vs. COUNT

The COUNT function in Google Sheets is similar to COUNTA, except COUNT only counts numbers, whereas COUNTA counts all values. The example below highlights the difference between the two.

counta-function-google-sheets-3

Here I use both functions on the same set of data from the first example. You can see that the COUNTA function counts both the numerical values, and the text values for the students that failed. The COUNT function, on the other hand, only counts the numerical values and ignores the text values. Neither function counts the blank cell for Ivan’s test score.

Blank cells

By now you understand that the COUNTA function counts all cells that contain a value, and ignores any cell that is blank. However, there are some tricky cases where a cell can appear blank but actually has a value and is included in the count. The example below illustrates this.

counta-function-google-sheets-4

At first glance, it looks like the first three cells in the list are all blank. However, from the Is Blank? column, you can see that only the second cell is truly blank. The others are an empty string, and an apostrophe, both of which appear to be blank but are not. When you use the COUNTA function, these cells are counted – so keep this in mind when using the function!

Want to count how many unique values appear in a range? Use Google Sheets COUNTUNIQUE function instead. 

Editor’s note: This is a revised version of a previous post that has been updated for accuracy and comprehensiveness.

39

An importrange alternative, more efficient and easier to manage

Start free trial

You may also like…

google sheets features and formulas

How to find nominal interest rate using Google Sheets

Sarah is a young professional making significant financial decisions. From credit cards to mortgages, student loans, and investment...
google sheets features and formulas

Pull Google Calendar data into Google Sheets using Apps Script

This post was originally published in our community forum. Objective : This guide demonstrates how to use Google Apps Script to pull data...
google sheets features and formulas

Using the PROPER function to capitalize the first letter of each word in Google Sheets

Note: This post was originally published in our community forum. Ever found yourself needing to clean up a list of names, titles, or any...