LiveFlow raises $13.5 million Series A led by New York-based Valar Ventures and launches LiveFlow Next to revolutionize finance!
Read More
Arrow
Back to guides
Google Sheets Formulas

COUNTA Function in Google Sheets: Explained

In this article, you will learn what the COUNTA function is and how to use it in Google Sheets.

The COUNTA formula is beneficial when you want to count the number of cells containing all types of values - texts, dates, times, and numbers. 

How to use the COUNTA formula in Google Sheets

  1. Type “=COUNTA(” or go to “Insert”“Function” (or directly navigate to the “Functions” icon)  “Statistical”“COUNTA”.
  2. Select a range or an array containing all values, the number of which you want to count
  3. Press the “Enter” key.

COUNTA Function in
How to insert the COUNTA function from the menu bar in Google Sheets 

Save hours formatting your next financial spreadsheet!
100+ templates, all free to use.
Free Spreadsheet Templates

The general syntax is as follows:

=COUNTA(value1, [value2, …])

Value1: This argument should be a cell, range, or array.

Value2: If you need to select other ranges, you can add as value2, value3, ….

Note

  1. 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.
  2. The function does not count the number of entirely blank cells, though it counts the number of cells containing only whitespace(s).
  3. Ensure all values whose numbers you count don’t have hidden text such as ““, or an apostrophe. For example, if a cell input is “‘7”, it looks like “7”.

Look at the example in the following screenshot. The eight cells are in the formula range, and the COUNTA formula returns seven. This is because it doesn’t count the number of a completely blank cell.

COUNTA Function
How the COUNTA function works in Google Sheets with an example

What is the difference between the COUNT and COUNTA functions in Google Sheets?

COUNTA stands for “count all”. The difference is that the COUNTA counts everything, including numbers, texts, dates, and times whereas the COUNT counts only numeric values, including dates and times. They are in common that they don’t count the number of blank cells.

The following picture shows the comparison of the two formulas. Both functions refer to the range of the eight cells as “value”. The check marks on the right hand of the table mean the formulas consider them countable values.

Sheets: Explained
The comparison of the COUNT and COUNTA functions in Google Sheets

Learn how LiveFlow can save you hours a month on financial reporting!
Just 30 minutes can change the way your business operates forever.
Book a Demo

If you want to count the number of entirely blank cells, you can use the COUNTBLANK function.

What is the difference between the COUNTIF and COUNTA functions?

The COUNTIF function is the formula that helps you count the number of values that meet a particular criterion.

If you have more than one condition, you need to use the COUNTIFS function. On the other hand, you can’t set up requirements for the COUNTA function.

Learn how to do this step-by-step in the video below 👇

Automate financial reporting with LiveFlow

Cta Photo

Want to eliminate manual updates of your Excel & Google Sheets models?

Yes, show me how!

Get personal help

We guarantee you personal help on chat or Zoom within maximum 6 hours between 9am and 10pm EST.
Blue Tick
Email us at: help@liveflow.io

Liked this article? Then you'll love the ones below

Supercharge your financial reporting today

See LiveFlow in action and discover how to streamline your workflows.

Book a demo