Share this page:

MS Excel: COUNTBLANK Function (WS)

This Excel tutorial explains how to use the Excel COUNTBLANK function with syntax and examples.


The Microsoft Excel COUNTBLANK function counts the number of empty cells in a range.


The syntax for the Microsoft Excel COUNTBLANK function is:


Parameters or Arguments

range is the range of cells to count empty cells.

Applies To

The COUNTBLANK function can be used in the following versions of Microsoft Excel:

  • Excel 2013, Excel 2011 for Mac, Excel 2010, Excel 2007, Excel 2003, Excel XP, Excel 2000

Type of Excel Function

The COUNTBLANK function can be used in Microsoft Excel as the following type of function:

  • Worksheet function (WS)

Example (as Worksheet Function)

Let's look at some Excel COUNTBLANK function examples and explore how to use the COUNTBLANK function as a worksheet function in Microsoft Excel:

Microsoft Excel

Based on the spreadsheet above, the following Excel COUNTBLANK examples would return:

Result: 1

Result: 3

Result: 3