How to Count Cells That are Not Blank in Excel – 8 Methods

The dataset contains dollar values in Accounting format.

count cells that are not blank in excel


Method 1 – Using the COUNTA Function

Steps:

  • Go to D10 and enter the following formula:
=COUNTA(B4:D9)

using counta function to count cells that are not blank in excel

  • Press Enter.

It will calculate the total number of non-empty cells in B4:D9.


Method 2 – Applying the COUNTIF Function

Steps:

  • Go to D10 and enter the following formula:
=COUNTIF(B4:D9, "<>"&"")

using countif function to count cells that are not blank in excel

  • Press Enter.

This is the output.


Method 3 – Utilizing the COUNTIFS Function

Steps:

  • Go to D10 and enter the following formula:
=COUNTIFS(B4:D9,"<>")

using countifs function to count cells that are not blank in excel

  • Press Enter.

This is the output.


Method 4 – Count Non-Blank Cells Using the COUNTBLANK Function

Steps:

  • Go to D10 and enter the following formula:
=ROWS(B4:D9)*COLUMNS(B4:D9)-COUNTBLANK(B4:D9)

using countblank function to count cells that are not blank in excel

  • Press Enter.

This is the output.


Method 5 – Using the SUMPRODUCT Function

Steps:

  • Go to D10 and enter the following formula:
=SUMPRODUCT((B4:D9<>"")*1)

using sumproduct function to count cells that are not blank in excel

  • Press Enter.

This is the output.


Method 6 – Applying LEN Function to Count Non-Blank Cells

Steps:

  • Go to D10 and enter the following formula:
=SUMPRODUCT(--(LEN(B4:D9)>0))

  • Press Enter.

This is the output.


Method 7 – Utilizing the Find & Select Feature

Steps:

  • Select B4:D9.
  • Go to the Home tab and click Find & Select in Editing.
  • Click Find.

  • In the Find and Replace window, enter * in Find what and click Find All.

This is the output.


Method 8 – Counting using the Status Bar

Steps:

  • Select B4:D9.
  • You will see the total number of filled cells at the bottom of the Excel window.


How to Count Blank Cells in Excel

Steps:

  • Go to D10 and enter the following formula:
=COUNTBLANK(B4:D9)

  • Press Enter.

This is the output.


Download Practice Workbook

Download the practice workbook.


<< Go Back to Count Cells | Formula List | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Md. Abdul Kader
Md. Abdul Kader

MD. ABDUL KADER is an engineer with a talent for Excel and a passion for VBA programming. To him, programming is like a time-saving wizard, making data manipulation, file handling, and internet interactions a breeze. His skill set extends to SWM, GIS, RS, and SPSS. He holds a B.Sc in Urban & Regional Planning from Chittagong University of Engineering and Technology and has shifted to become a content developer. In this role, he crafts technical content centred around... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo