Go Back

Count cells that contain numbers

There are simple ways to count cells containing numbers in Excel. We can do it using the COUNT function. It allows us to calculate numeric data regardless of the quantity of data on the spreadsheet. In this tutorial, we will learn how to count cells that contain numbers.

Figure 1: Example of How to Count Cells that Contain Numbers


=COUNT(range1, [range2..])

  • Range1
    The range here is the range where we want to count the cells containing numbers. This value is required.
  • [range2..]
    More ranges to count numbers from. This value is optional. Excel can count up to 255 ranges.

COUNT is a fully automatic function. It calculates the result by counting cells in the range containing numbers.

Setting up Data

In the following example, columns A, B and C contain some sample data. They contain text, numbers and logical values.

Figure 2: The Sample Data

To count the cells that contain numbers:
Go to cell E4.

  • Next, we need to click on Formulas>Insert Function. In the search box type COUNT and click Go.

Figure 3: Searching the COUNT Function

  • From the Select a Function box, we need to select COUNT and press Ok.
  • Then, we need to input the range. In this case, it will be the range A2 to C6.

Figure 4: Assigning the Range

  • Press Ok.

Now we will have the formula =COUNT(A2:C6) in cell E4. This will show the result 8 in cell E4.

The COUNT function offers a fast and effective way to count the cells containing numbers in Excel.  This function is especially important when we need to count numbers fast and on time.

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

I want Excel to count a range of cells that contain specific data
Solved by B. L. in 13 mins
I need to count and sum the cells with any value in them. These same cells already contain a formula. How do i get my countif function to ignore the formula and count only those cells that contain a value?
Solved by K. H. in 21 mins
I want to add a row of cells in excel where some cells contain numbers and sum contain characters which will change after each entry. I only want to add the cells that contain numbers after each calculation? eg Total Anthony 6 | ###| 5 | ~~~ | 2 | 11 |
Solved by I. L. in 15 mins

Leave a Comment