Excel’s COUNTBLANK function counts the number of blank cells in a range of cells. You can use it to quickly count the number of empty cells, or to check if a range is completely empty.
Here’s how to use the COUNTBLANK function:
- In a cell, type the following formula:
=COUNTBLANK(range)
- Replace
range
with the cell range that you want to count the blank cells in. For example, if you want to count the blank cells in a table that starts in cell A1 and goes to cell C10, you would typeA1:C10
. - Press Enter to see the result. The cell will display the number of blank cells in the specified range.
Here’s an example of the complete formula: =COUNTBLANK(A1:C10)
This formula would count the number of blank cells in the range A1:C10.
You can also use the COUNTBLANK function with an array constant, which is a set of values enclosed in curly braces {}. For example:
=COUNTBLANK({1,2,3;4,5,6;7,8,9})
This formula would count the number of blank cells in the array constant, which is 0.
Leave a Reply
You must be logged in to post a comment.