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
- Type “=COUNTBLANK” or go to “Insert” → “Function” (or directly navigate to the “Functions” icon) → “Math” → “COUNTBLANK”.
- Select a range or an array including blank cells whose numbers you need to calculate
- Press the “Enter” key.
The general syntax is as follows:
Value1: This argument should be a cell, range, or array.
Value2: If you need to select other ranges, you can add as value2, value3, ….
- 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.
- The function doesn’t count the number of cells incorporating any values, including ones containing only whitespace(s).
- 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 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.