Arrow left
Back to product guides
Google Sheets Formulas

COUNTBLANK Function in Google Sheets: Explained

In this article, you will learn how to use the COUNTBLANK formula in Google Sheets.

What is Google Sheets’ COUNTBLANK formula?

This function counts the number of blank cells in the selected range. 

 

How to use the COUNTBLANK function in Google Sheets

  1. Type “=COUNTBLANK” or go to “Insert”“Function” (or directly navigate to the “Functions” icon)  “Math”“COUNTBLANK”.
  2. Select a range or an array including blank cells whose numbers you need to calculate
  3. Press the “Enter” key.
How to insert the COUNTBLANK formula in Google Sheets

The general syntax is as follows:

=COUNTBLANK(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 COUNTBLANK function counts the total number of blank cells. So, even when empty cells appear several times in a data set, they are calculated individually.
  2. The function doesn’t count the number of cells incorporating any values, including ones containing only whitespace(s).
  3. Ensure all cells you want to count don’t have hidden text such as ““, an apostrophe.

The following screenshot presents how the function works in Google Sheets. As there are two entirely blank cells in the selected range, the formula returns two.

How the COUNTBLANK formula works in Google Sheets with an example

How do I count filled cells in Google Sheets?

You can use COUNT, COUNTA, or COUNTUNIQUE depending on your purpose.

COUNT: This formula is effective when you want to calculate the number of numeric values including date and time.

COUNTA: This function is helpful when you want to count the number of all values except for blank cells.

COUNTUNIQUE: This formula is useful when you need to compute the number of unique values (excluding duplicates) in a range.

Other formulas related to mathematics and statistics

If you don’t get the right answer to your question in this article or you have other questions related to mathematics or statistics, you may find the answers in the following articles.

Go to the following articles if you want to learn basic formulas in Google Sheets.

How to Do Math in Google Sheets for Beginners

How to Sum Numbers in Google Sheets

How to Use SUMPRODUCT Formula in Google Sheets

How to Use MAX Function in Google Sheets

How to Use MIN Function in Google Sheets

How to Use MEDIAN Function in Google Sheets

How to Use AVERAGE Formula in Google Sheets

How to Use MODE Function in Google Sheets

MOD Function in Google Sheets: Explained

Navigate to the pages below if you need to learn how to sum, count, or average numbers with a condition or multiple conditions. 

How to Use SUMIF Function in Google Sheets - sum up the numbers that meet a criterion

SUMIFS Function in Google Sheets: Explained - sum up the numbers that meet multiple criteria

How to Use COUNTIF Function in Google Sheets - count the number of cells that meet a requirement

How to Use COUNTIFS function in Google Sheets - count the number of cells that meet multiple requirements

AVERAGEIF Function in Google Sheets: Explained - average the figures that meet a standard

AVERAGEIFS Function in Google Sheets: Explained - average the figures that meet multiple standards

Analyze your live financial data in a snap

Are you learning this formula to build a financial KPI dashboard, or conduct financial analysis? If so, LiveFlow may help you to automate manual workflows and keep numbers updated in real time. For instance, you can easily compare your Budget versus Actual without any manual work. Furthermore, you can access other templates here, from the simple Income Statement and Operational KPI templates to Multi-Currency Consolidated Income Statement, Balance Sheet, and Cash Flow templates. You can also customize these templates as you want without breaking the automated data inflow.

To learn more about LiveFlow, book a demo.

Automate any custom financial dashboard in Google Sheets with LiveFlow

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

Do you need personal help?

Our team of real people are here to help you any time between 9am and 10pm GMT.
Check Icon
Email us at: founders@liveflow.io
Check Icon
Call us at +1 (415) 650-1711