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.
Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!
Normally the VLOOKUP function returns a value, and if it can't return a value it returns a zero. Here's how you can use ...Discover More
Excel includes a handy function that allows you to repeat characters or strings of characters. How you use the REPT ...Discover More
The process of combining string (text) values to make a new string is called concatenation. Excel provides the ...Discover More
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.