Please Note: This article is written for users of the following Microsoft Excel versions: 2007, 2010, 2013, and 2016. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Counting the Number of Blank Cells.
by Allen Wyatt
(last updated September 24, 2016)
One of the worksheet functions provided by Excel allows you to quickly and easily count the number of blank cells in a range. The format of the function is as follows:
The function returns an integer value representing the number of blank cells in the range. You should be careful, however. If you have the display of zero values suppressed for the worksheet, a cell can appear blank when it is not really blank. COUNTBLANK returns blank cells, not counting those that would have a zero displayed if you chose to display such values. (How you suppress the display of zero values in a worksheet is discussed in other ExcelTips.)
ExcelTips is your source for cost-effective Microsoft Excel training. This tip (10108) applies to Microsoft Excel 2007, 2010, 2013, and 2016. You can find a version of this tip for the older menu interface of Excel here: Counting the Number of Blank Cells.
Professional Development Guidance! Four world-class developers offer start-to-finish guidance for building powerful, robust, and secure applications with Excel. The authors show how to consistently make the right design decisions and make the most of Excel's powerful features. Check out Professional Excel Development today!
If you need to do some work in the base-8 numbering system (octal), you'll love two worksheet functions provided by Excel ...Discover More
Need to find the absolute value of a number? That's where the ABS function comes into play.Discover More
When working with text in a formula, you may need to extract the left-most characters from a string of text or from a ...Discover More
FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."
Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.