How to Count Blank or Empty Cells in Microsoft Excel - WindowsTips.net - Windows Tips and Tricks with Geek

Wednesday, November 17, 2021

How to Count Blank or Empty Cells in Microsoft Excel

 Microsoft Excel logo on a green background

Count Blank Cells Using a Function

The COUNT function in Microsoft Excel is handy for many scenarios. So with a variation of that function, you can count empty cells easily. The function is COUNTBLANK and here’s how to use it.

Note: While the COUNTBLANK function in Google Sheets ignores cells that are empty (containing an empty string, "" ), Excel’s version of the function does not make this distinction. Thus, COUNTBLANK will return a count of both blank and empty cells.

Select the cell where you want to insert the function. This is the same cell that will display the count of blank cells. Type the following formula into the cell replacing the cell range with your own and hit Enter.

=COUNTBLANK(B2:F12)

You should then see the number of empty cells in the range you selected for the formula.

Use the COUNTBLANK function in Excel

If you want to adjust the cell range, this is also simple. Click the cell containing the function, go up to the Formula Bar, and place your cursor within the cell range. You can manually change the cell references in the range or drag in or out on the blue box. Then, press Enter.

Edit the COUNTBLANK function in Excel

You can also combine the COUNTBLANK function with itself to count the number of blank cells in different cell ranges of the same workbook. Type the following formula into the cell replacing the cell ranges with your own and press Enter.

=COUNTBLANK(B2:F12)+COUNTBLANK(J2:N12)

Notice the cell ranges for each set are outlined in a different color making them easy to edit if needed.

Combine COUNTBLANK for different cell ranges

And you get the total count in one cell for both sets of cell ranges.

Combined count for different cell ranges

If you use colors to differentiate data, you may also find it useful to count colored cells in your spreadsheet

Count Blank Cells Using the Find Feature

If you would rather not keep a formula in your sheet, but merely see a quick count of blank cells, use the Find feature.

Select the cells that include the blanks you want to find. Go to the Home tab and click the Find & Select drop-down arrow in the Editing section of the ribbon. Choose “Find.”

Click Find and Replace and pick Find

When the Find and Replace window opens, leave the Find What box blank. Then, click “Options” to expand the section at the bottom.

Click Options

Adjust the three drop-down boxes on the left side to use the following:

  • Within: Sheet
  • Search: By Rows or By Columns (per your preference)
  • Look In: Values

Adjust the Find feature options

When you’re ready, click “Find All.” You’ll then see the number of cells found on the bottom left of the window.

Blank cells found

You’ll also see a list of those empty cells in your sheet. You can click one to go directly to it or click “Find Next” to move to each of the results in the list one at a time.

Move to each blank cell

Click “Close” when you finish.

No comments:

Post a Comment