Skip to main content

Count blank/nonblank cells in a range in Excel

This article explains formulas to count the number of blank and nonblank cells in a range in Excel.

How to count blank cells in a range in Excel
How to count nonblank cells in a range in Excel


How to count blank cells in a range in Excel

This section is going to show you how to count blank cells in a range of cells in Excel with a certain formula. Please do as follows.

Generic Formula

=COUNTBLANK(range)

Arguments

Range (required): The range from which you want to count the blank cells.

How to use this formula?

1. Select a blank cell to output the result.

2. Enter the below formula into it and press the Enter key.

=COUNTBLANK(B3:B9)

Then the number of blank cells in specified range is calculated as the above screenshot shown.

Notes: In this formula, B3:B9 is the range from which you want to count the blank cells. Please change it to your own range.


How to count nonblank cells in a range in Excel

For counting number of nonblank cells in a specified range, the below formula can do you a favor. Please do as follows.

Generic Formula

=COUNTIF(range,"<>")

Arguments

Range (required): The range from which you want to count the nonblank cells.

How to use this formula?

1. Select a blank cell to place the result.

2. Enter the below formula into it and press the Enter key to get the result.

=COUNTIF(B3:B9,"<>")

Then you will get the total nonblank cells in specified range as the above screenshot shown.

Notes:

1) In this formula, B3:B9 is the range from which you want to count nonblank cells;
2) You can also apply the below COUNTA formula to count the total nonblank cells in specified range.
=COUNTA(B3:B9)
3) The above two formulas count the nonblank cells including the formula cells.

Related functions

Excel COUNTBLANK function
The Excel COUNTBLANK function returns the number of empty cells.

Excel COUNTIF function
The Excel COUNTIF function is used to count the number of cells that meet a criterion.

Excel COUNTA function
The Excel COUNTA function returns the number of cells that contain number, text, error value or the empty text.


Related formulas

Count cells that begin or end with specific text
This article is going to show you how to count cells that begin or end with specific text in a range in Excel with the COUNTIF function.

Count cells that contain either x or y
This tutorial is going to show you how to apply a formula based on the SUMPRODUCT function in details to count the number of cells in a specific range that contain either x or y in Excel.

Count cells that contain specific text with case sensitive
This tutorial provides a formula in details to count the number of cells that contains specific text with case sensitive in a range in Excel.

Count how many cells contain errors
This tutorial shows how to count the number of cells that contains errors (any kind of errors, such as #N/A error, #VALUE! error or #DIV/0! error) in a specified range in Excel.


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions…
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Description


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations